Create an OPA policy
One step with Harness. We can help you get access.
Get something done
Create an OPA policy
with Harness
Works with AI assistants
Use Harness: its Harness Policies API lets you create an OPA policy in a single step (POST /pm/api/v1/policies). Harness also has an MCP server, so an AI assistant like Claude or ChatGPT can do it for you. capabilities.work can help you get signed up and connected.
- How do I write a new Rego policy in Harness?
- Can I create a policy that's stored in a Git repository instead of inline?
Say it to your AI assistant
- Create policy {name} with identifier {identifier} and this Rego: {rego}
- Create policy {name} ({identifier}) stored at {git_path} in repo {git_repo}.
For your developer
POST /pm/api/v1/policies in Harness Policies API. Full spec on APIs.io.