Harness Rule API

This contains APIs related to Governance Rule Management

Operations 15

Each operation below carries the questions people ask an LLM about it and the instructions they give an agent to run it. Generated by API Evangelist overlay

POST /ccm/api/governance/ruleClone Clone a cloud governance rule · Clone a rule #
Ask an LLM
“Can I copy an existing governance rule to start a new one from it?”
“How do I duplicate a cloud asset governance rule?”
Tell an agent
Clone governance rule using clone request {clone}.
Make a copy of a governance rule in account {account} with {clone}.
PUT /ccm/api/governance/rule Update a cloud governance rule · Update a Rule #
Ask an LLM
“How do I change the policy of an existing governance rule?”
“Can I edit a cloud governance rule's definition after creating it?”
Tell an agent
Update the governance rule with definition {rule}.
Save changes to governance rule {rule} in account {account}.
POST /ccm/api/governance/rule Create a cloud governance rule · Add a rule #
Ask an LLM
“Can I add a new custom rule to Cloud Asset Governance?”
“What goes into creating a governance rule for my cloud resources?”
Tell an agent
Create a new governance rule {rule}.
Add governance rule {rule} to account {account}.
GET /ccm/api/governance/rule/{ruleID} Get a governance rule by ID · Get a governance rule #
Ask an LLM
“What policy does a particular governance rule enforce?”
“Can I pull up one cloud governance rule by its ID?”
Tell an agent
Get governance rule {rule_id}.
Show the definition of governance rule {rule_id}.
DELETE /ccm/api/governance/rule/{ruleID} Delete a governance rule · Delete a rule #
Ask an LLM
“How do I remove a governance rule I no longer need?”
“Can I delete a custom cloud governance rule by ID?”
Tell an agent destructive · confirm first
Delete governance rule {rule_id}.
Remove governance rule {rule_id} from account {account}.
POST /ccm/api/governance/enqueue Queue governance evaluation jobs · Enqueue jobs for evaluation #
Ask an LLM
“How do I queue a governance rule enforcement to be evaluated against a cloud account?”
“Can I queue a governance evaluation as a dry run in a specific region?”
Tell an agent
Enqueue evaluation of rule enforcement {enforcement} in region {region}.
Queue rule {rule} for evaluation against {target} as dry run {dry_run}.
POST /ccm/api/governance/enqueueAdhocV2 Run a governance rule ad hoc · Simple Request to enqueue rule for execution #
Ask an LLM
“Can I run one governance rule right now against a few cloud accounts?”
“What's the simplest way to trigger an ad hoc rule run across chosen regions?”
Tell an agent
Run governance rule {rule} ad hoc against accounts {accounts}.
Execute rule {rule} on accounts {accounts} in regions {regions} as a dry run {dry_run}.
GET /ccm/api/governance/rule/costCoRelationSupportedResources List resources that support cost correlation · List resources for which cost co-relation is supported #
Ask an LLM
“Which cloud resource types can governance correlate with cost?”
“For what resources will a governance rule show cost impact?”
Tell an agent
List resource types that support governance cost correlation.
Show cost-correlation supported resources for account {account}.
GET /ccm/api/governance/ruleSchema Get the Cloud Custodian rule schema · Custodian Schema #
Ask an LLM
“What Cloud Custodian schema are governance rules validated against?”
“Where can I see the allowed resources and filters for writing a governance rule?”
Tell an agent
Get the custodian schema used for governance rule validation.
Fetch the governance rule schema for project {project}.
GET /ccm/api/governance/rule/potentialRulesForRecommendation List rules eligible for recommendations · Fetch potential rules that can be enabled for recommendation for account #
Ask an LLM
“Which governance rules could I enable to generate recommendations?”
“Are there rules in my account not yet turned on for recommendations?”
Tell an agent
List governance rules that can be enabled for recommendations.
Show potential recommendation rules for account {account}.
POST /ccm/api/governance/rule/list Search governance rules · Fetch rules for account #
Ask an LLM
“What governance rules exist in my account?”
“Can I find governance rules whose names match a pattern?”
Tell an agent
List governance rules with names matching {pattern}.
Fetch governance rules using query {query}.
GET /ccm/api/governance/governanceTargetList List governance-enabled cloud targets · Governance Targets #
Ask an LLM
“Which cloud accounts have governance enabled with valid permissions?”
“Can I list only the target IDs governance can act on for AWS or Azure?”
Tell an agent
List governance targets for cloud provider {provider}.
Show only target IDs for {provider} governance targets.
GET /ccm/api/governance/regions List AWS or Azure regions for governance · List of Regions for Aws/Azure #
Ask an LLM
“Which regions can I filter governance resources by?”
“What AWS or Azure regions are available for rule targeting?”
Tell an agent
List governance regions for cloud provider {provider}.
Show the {provider} regions I can filter governance resources on.
PUT /ccm/api/governance/rule/toggleForRecommendation Enable or disable a rule for recommendations · Enable/Disable a custom Rule to be considered for recommendation #
Ask an LLM
“How do I turn a custom governance rule on or off for recommendations?”
“Can I scope recommendations from a rule to certain cloud accounts?”
Tell an agent
Set rule {rule} recommendation enabled to {enabled}.
Enable rule {rule} for recommendations on cloud accounts {accounts}.
POST /ccm/api/governance/ruleValidate Validate a governance rule's syntax · Validate Governance Rule #
Ask an LLM
“Is my governance rule YAML free of syntax errors before I save it?”
“Can I check a rule definition for mistakes without creating it?”
Tell an agent
Validate governance rule {rule} for syntax errors.
Check governance rule definition {rule} before saving.

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/harness:harness-rule-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

harness-rule-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Harness Rule API
  version: '1.0'
  description: The Harness Software Delivery Platform uses OpenAPI Specification v3.0.
  contact:
    name: API Support
    email: contact@harness.io
    url: https://harness.io/
  x-logo:
    url: https://mma.prnewswire.com/media/779232/Harnes_logo_horizontal.jpg?p=facebook
    altText: Harness
  termsOfService: https://harness.io/terms-of-use/
servers:
- url: https://app.harness.io
  description: Harness host URL
- url: https://{vanity}
  description: Vanity URL
  variables:
    vanity:
      default: app.harness.io
security:
- x-api-key: []
tags:


# --- truncated at 32 KB (91 KB total) ---
# Full source: https://raw.githubusercontent.com/api-evangelist/harness/refs/heads/main/openapi/harness-rule-api-openapi.yml