curl --request GET \
--url https://api.cpln.io/org/{org}/policy/{name} \
--header 'Authorization: <api-key>'{
"id": "<string>",
"name": "<string>",
"kind": "<string>",
"version": 123,
"description": "<string>",
"tags": {},
"created": "2023-11-07T05:31:56Z",
"lastModified": "2023-11-07T05:31:56Z",
"links": [
{
"rel": "<string>",
"href": "<string>"
}
],
"targetKind": "org",
"targetLinks": [
"<string>"
],
"targetQuery": {
"kind": "<string>",
"context": {},
"spec": {
"match": "all",
"terms": [
{
"op": "=",
"property": "<string>",
"rel": "<string>",
"tag": "<string>",
"value": "<string>"
}
],
"sort": {
"by": "<string>",
"order": "asc"
}
}
},
"target": "all",
"origin": "default",
"bindings": [
{
"permissions": [
"<string>"
],
"principalLinks": [
"<string>"
]
}
]
}Response will contain the requested policy if the caller is authorized to view it
curl --request GET \
--url https://api.cpln.io/org/{org}/policy/{name} \
--header 'Authorization: <api-key>'{
"id": "<string>",
"name": "<string>",
"kind": "<string>",
"version": 123,
"description": "<string>",
"tags": {},
"created": "2023-11-07T05:31:56Z",
"lastModified": "2023-11-07T05:31:56Z",
"links": [
{
"rel": "<string>",
"href": "<string>"
}
],
"targetKind": "org",
"targetLinks": [
"<string>"
],
"targetQuery": {
"kind": "<string>",
"context": {},
"spec": {
"match": "all",
"terms": [
{
"op": "=",
"property": "<string>",
"rel": "<string>",
"tag": "<string>",
"value": "<string>"
}
],
"sort": {
"by": "<string>",
"order": "asc"
}
}
},
"target": "all",
"origin": "default",
"bindings": [
{
"permissions": [
"<string>"
],
"principalLinks": [
"<string>"
]
}
]
}Service account key can be used as API keys
Success
64250org, cloudaccount, policy, user, group, resource, task, permissions, serviceaccount, secret, location, gvc, workload, quota, identity, deployment, event, domain, image, ipset, resourcepolicy, agent, accessreport, policymembership, dbcluster, auditctx, memcachecluster, spicedbcluster, tenant, mk8s, command, imagesummary, volumeset Show child attributes
Show child attributes
all, any, none all default, builtin