POST
/
org
/
{org}
/
agent
/
-query
curl --request POST \
  --url https://api.cpln.io/org/{org}/agent/-query \
  --header 'Content-Type: application/json' \
  --data '{
  "kind": "<string>",
  "spec": {
    "match": "all",
    "terms": [
      {
        "op": "=",
        "property": "<string>",
        "rel": "<string>",
        "tag": "<string>",
        "value": "<string>"
      }
    ]
  }
}'
{
  "kind": "<string>",
  "itemKind": "org",
  "items": [
    {}
  ],
  "links": [
    {
      "rel": "<string>",
      "href": "<string>"
    }
  ],
  "query": {
    "kind": "<string>",
    "context": {},
    "spec": {
      "match": "all",
      "terms": [
        {
          "op": "=",
          "property": "<string>",
          "rel": "<string>",
          "tag": "<string>",
          "value": "<string>"
        }
      ]
    }
  }
}

Authorizations

Authorization
string
headerrequired

Service account key can be used as API keys

Path Parameters

org
string
required

Body

application/json
kind
string
spec
object

Response

200 - application/json
kind
string
itemKind
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
items
object[]
links
object[]
query
object