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>"
}
],
"sort": {
"by": "<string>",
"order": "asc"
}
}
},
"target": "all",
"bindings": [
{
"permissions": [
"<string>"
],
"principalLinks": [
"<string>"
]
}
]
}'
"<any>"
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>"
}
],
"sort": {
"by": "<string>",
"order": "asc"
}
}
},
"target": "all",
"bindings": [
{
"permissions": [
"<string>"
],
"principalLinks": [
"<string>"
]
}
]
}'
"<any>"
Service account key can be used as API keys
The body is of type object
.
Policy was created successfully
The response is of type any
.