How AI is applied across API Evangelist and APIs.io. Read my AI disclosure →
API Evangelist API Evangelist
Discovery
Learnings
Guidance
Toolbox
Alignment
API Evangelist LLC

Harness Rule API

This contains APIs related to Governance Rule Management

Harness Rule API is one of 488 APIs that Harness publishes on the APIs.io network, described by a machine-readable OpenAPI specification.

Tagged areas include rule. The published artifact set on APIs.io includes an OpenAPI specification, API documentation, an API reference, a getting-started guide, authentication docs, and rate-limit docs.

This API exposes 15 operations across 13 paths, and defines 30 schemas. It is described by OpenAPI 3.2.0, at version 1.0.

Requests are made against 2 base URLs: https://app.harness.io, https://{vanity}.

15 operations 13 paths 30 schemas 1 DELETE6 GET6 POST2 PUT

Metadata

The identity and technical contract details declared by the specification.

Specification
OpenAPI 3.2.0
API Version
1.0
Base URL
https://app.harness.io
Authentication
API Key
Terms of Service
Resource Areas
1

Authentication & Security 1

Harness Rule API declares 1 security scheme for authenticating requests. An API key is passed in the header as x-api-key (x-api-key). By default, every request must be authenticated.

  • x-api-key — API key is a token provided while making the API calls. This is used to authenticate the client at the exposed endpoint.

Paths & Operations 15

Across 13 paths, the API surfaces 15 operations — 1 DELETE, 6 GET, 6 POST, 2 PUT. Each is listed below with its method, path, parameters, and response codes.

Rule 15

This contains APIs related to Governance Rule Management

POST
/ccm/api/governance/ruleClone
Clone a rule
CloneRule 1 param body → 400500default
PUT
/ccm/api/governance/rule
Update a Rule
updateRule 1 param body → 400500default
POST
/ccm/api/governance/rule
Add a rule
CreateNewRule 1 param body → 400500default
GET
/ccm/api/governance/rule/{ruleID}
Get a governance rule
getGovernanceRule 2 params → 400500default
DELETE
/ccm/api/governance/rule/{ruleID}
Delete a rule
deleteRule 2 params → 400500default
POST
/ccm/api/governance/enqueue
Enqueue jobs for evaluation
enqueueGovernanceJob 1 param body → 400500default
POST
/ccm/api/governance/enqueueAdhocV2
Simple Request to enqueue rule for execution
simpleEnqueueAdhocGovernanceRule 1 param body → 202400500
GET
/ccm/api/governance/rule/costCoRelationSupportedResources
List resources for which cost co-relation is supported
costCoRelationSupportedResources 1 param → 400500default
GET
/ccm/api/governance/ruleSchema
Custodian Schema
governanceRuleSchema 3 params → 400500default
GET
/ccm/api/governance/rule/potentialRulesForRecommendation
Fetch potential rules that can be enabled for recommendation for account
getPotentialRulesForRecommendation 1 param → 400500default
POST
/ccm/api/governance/rule/list
Fetch rules for account
getPolicies 2 params body → 400500default
GET
/ccm/api/governance/governanceTargetList
Governance Targets
governanceTargetList 5 params → 400500default
GET
/ccm/api/governance/regions
List of Regions for Aws/Azure
regions 2 params → 400500default
PUT
/ccm/api/governance/rule/toggleForRecommendation
Enable/Disable a custom Rule to be considered for recommendation
toggleForRecommendation 3 params body → 400500default
POST
/ccm/api/governance/ruleValidate
Validate Governance Rule
validateGovernanceRule 1 param body → 400500default

Schemas 30

The contract defines 30 schemas that model the data the API accepts and returns. The most detailed are CcmRule (25 properties), GovernanceJobEnqueueDTO (17 properties), RuleRequest (14 properties), RecommendationAdhocDTO (11 properties). Each schema is shown below with its type and property counts.

ResponseDTOListRule
object
4 properties
ResponseDTOString
object
4 properties
ResponseDTORuleList
object
4 properties
ResponseDTOSetString
object
4 properties
GovernanceAdhocEnqueueDTOV2
object
4 properties 2 required
GovernanceJobEnqueueDTO
object
17 properties
CloneRuleDTO
object
1 property
ValidationError
object
2 properties
ResponseDTOListString
object
4 properties
ListDTO
object
1 property
RuleRequest
object
This has the query to list the policies
14 properties
CCMSort
object
The order by condition for Rule Set query
2 properties
CcmError
object
This is Error entity as defined in Harness
7 properties
RecommendationAdhocDTO
object
11 properties 1 required
ResponseDTOGovernanceEnqueueResponseDTO
object
4 properties
RuleList
object
This object will contain the complete definition of a Cloud Cost Rule List
2 properties
ResponseDTOBoolean
object
4 properties
OidcAuthParams
object
CcmRule
object
This object will contain the complete definition of a Cloud Cost Policies
25 properties
GovernanceEnqueueResponseDTO
object
2 properties
CcmErrorMetadata
object
This implements different error meta data objects
1 property
Failure
object
This is Failure entity as defied in Harness
5 properties
SubRulePolicyDetails
object
This object stores policy details for a multi policy rule.
3 properties
CreateRuleDTO
object
1 property
RuleClone
object
This is the view of Rule Clone as defined in Cloud asset Governance Harness.
1 property
ResponseMessage
object
7 properties
ResponseDTOMapStringString
object
4 properties
ToggleForRecommendationRequest
object
2 properties
EmbeddedUser
object
4 properties
ResponseDTORule
object
4 properties

Specification

The full machine-readable OpenAPI contract behind this narrative.

Source

harness-rule-api-openapi.yml Raw ↑

Other APIs Harness publishes across the network.

Harness Continuous Integration API
Harness Continuous Delivery and GitOps API
Harness Feature Management and Experimentation API
Harness Cloud Cost Management API
Harness Chaos Engineering API
Harness Security Testing Orchestration API
Harness Internal Developer Portal API
Harness Code Repository API
Harness Service Reliability Management API
Harness Infrastructure as Code Management API
Harness Supply Chain Security API
Harness Software Engineering Insights API
Where this information came from

This is an independent, third-party profile of Harness Rule API, published by API Evangelist. We do not operate, host, resell, or support these APIs, and we are not affiliated with or endorsed by the company unless stated above. Everything here is built from publicly available information — the company's own site, developer portal, documentation, public repositories, and the specifications it publishes for public use. Nothing is obtained by breaching a system, defeating an access control, or using credentials.

The Kin Score and Agent Readiness rating are independently calculated assessments of a company's public API artifacts, scored against a published rubric. They are not certifications, endorsements, security assessments, or audits.

Corrections, re-scores, and removal are free — no partnership or purchase required, and you do not need to justify the request. A removed company is recorded as unrated, never scored zero for having asked. Acknowledgement within one business day; removal within two.

info@apievangelist.com · Read the full data-sourcing policy →
On a security or compliance team? Put security in the subject line and you will get a person, not a form — we will tell you exactly which public URLs this profile was built from.