POST
/
org
/
{org}
/
policy
curl --request POST \
  --url https://api.cpln.io/org/{org}/policy \
  --header 'Content-Type: application/json' \
  --data '{
  "description": "<string>",
  "tags": {},
  "targetKind": "org",
  "targetLinks": [
    "<string>"
  ],
  "targetQuery": {
    "kind": "<string>",
    "spec": {
      "match": "all",
      "terms": [
        {
          "op": "=",
          "property": "<string>",
          "rel": "<string>",
          "tag": "<string>",
          "value": "<string>"
        }
      ]
    }
  },
  "target": "all",
  "bindings": [
    {
      "permissions": [
        "<string>"
      ],
      "principalLinks": [
        "<string>"
      ]
    }
  ]
}'
"<any>"

Authorizations

Authorization
string
headerrequired

Service account key can be used as API keys

Path Parameters

org
string
required

Body

application/json
description
string
tags
object
targetKind
enum<string>
Available options:
org,
cloudaccount,
policy,
user,
group,
resource,
task,
permissions,
serviceaccount,
secret,
location,
gvc,
workload,
quota,
identity,
deployment,
event,
domain,
image,
resourcepolicy,
agent,
accessreport,
policymembership,
dbcluster,
auditctx,
memcachecluster,
spicedbcluster,
tenant,
mk8s,
command,
imagesummary,
volumeset
targetLinks
string[]
targetQuery
object
target
enum<string>
Available options:
all
bindings
object[]

Response

201 - application/json

The response is of type any.