Harness Rule Enforcement API

This contains APIs related to Rule Enforcement

Operations 9

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

PUT /ccm/api/governance/enforcement Update a cloud governance rule enforcement · Update a Rule enforcement #
Ask an LLM
“How do I change the schedule or targets of an existing cloud governance enforcement?”
“Can I edit which rules an enforcement runs after it is created?”
Tell an agent
Update the rule enforcement in account {account} with {enforcement}.
Apply these changes to the existing enforcement: {enforcement}.
POST /ccm/api/governance/enforcement Create a cloud governance rule enforcement · Add a new rule Enforcement #
Ask an LLM
“How do I schedule a cloud asset governance rule to run automatically against my accounts?”
“Can I set up a new enforcement for a rule set in Harness CCM?”
Tell an agent
Create a new rule enforcement in account {account} defined as {enforcement}.
Add a scheduled governance enforcement: {enforcement}.
DELETE /ccm/api/governance/enforcement/{enforcementID} Delete a rule enforcement · Delete a rule enforcement #
Ask an LLM
“How do I permanently remove a governance enforcement?”
“Can I delete an enforcement rather than just disabling it?”
Tell an agent destructive · confirm first
Delete rule enforcement {enforcement}.
Remove enforcement {enforcement} from account {account}.
POST /ccm/api/governance/enforcement/count Find enforcements that use given rules or rule sets · Fetch Rule Enforcements for given RuleIds/RuleSetIds #
Ask an LLM
“Which enforcements use a given governance rule before I edit or delete it?”
“How many enforcements reference a particular rule set?”
Tell an agent
Find the enforcements that reference these rules or rule sets: {rules}.
Count enforcements per rule ID in account {account} for {rules}.
GET /ccm/api/governance/enforcement/details Get details of a rule enforcement · Get Rule Enforcement details for given Enforcement Id #
Ask an LLM
“What rules, schedule and target accounts does a particular enforcement have?”
“Can I see the full configuration of one governance enforcement?”
Tell an agent
Show the details of enforcement {enforcement}.
Get the configuration of rule enforcement {enforcement} in account {account}.
POST /ccm/api/governance/enforcement/savings Get savings produced by a rule enforcement · Get Rule Enforcement savings for given Enforcement Id #
Ask an LLM
“How much money has a specific governance enforcement saved us?”
“Can I measure cost savings attributed to one enforcement?”
Tell an agent
Show the savings realised by enforcement {enforcement}.
Get cost savings for rule enforcement {enforcement} in account {account}.
GET /ccm/api/governance/enforcement/list List rule enforcements by keyword · Fetch Rule Enforcements for account #
Ask an LLM
“What governance enforcements exist in my account?”
“Can I search enforcements by keyword and sort the list?”
Tell an agent
List the rule enforcements in account {account}.
Search enforcements by keyword {keyword}.
POST /ccm/api/governance/enforcement/list Filter rule enforcements by rule, region or status · Fetch Rule Enforcements for account with filters #
Ask an LLM
“Which enforcements are enabled and running in dry-run mode?”
“Can I filter enforcements by target cloud accounts or regions?”
Tell an agent
List enforcements that target region {region}.
Show enforcements that run rules {rules} against cloud accounts {accounts}.
PUT /ccm/api/governance/enforcement/toggle Enable or disable a rule enforcement · Enable/Disable a Rule Enforcement for given Enforcement Id #
Ask an LLM
“How do I pause a governance enforcement without deleting it?”
“Can I turn a disabled enforcement back on?”
Tell an agent
Disable enforcement {enforcement}.
Set enforcement {enforcement} enabled to {enabled}.

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-ruleenforcement-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-ruleenforcement-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Harness Rule Enforcement 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 (83 KB total) ---
# Full source: https://raw.githubusercontent.com/api-evangelist/harness/refs/heads/main/openapi/harness-ruleenforcement-api-openapi.yml