POST
/
org
/
{org}
/
workload
/
-query
curl --request POST \
  --url https://api.cpln.io/org/{org}/workload/-query \
  --header 'Content-Type: application/json' \
  --data '{
  "kind": "<string>",
  "spec": {
    "match": "all",
    "terms": [
      {
        "op": "=",
        "property": "<string>",
        "rel": "<string>",
        "tag": "<string>",
        "value": "<string>"
      }
    ],
    "sort": {
      "by": "<string>",
      "order": "asc"
    }
  }
}'
{
  "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>"
        }
      ],
      "sort": {
        "by": "<string>",
        "order": "asc"
      }
    }
  }
}

Authorizations

Authorization
string
header
required

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
Success
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,
ipset,
resourcepolicy,
agent,
accessreport,
policymembership,
dbcluster,
auditctx,
memcachecluster,
spicedbcluster,
tenant,
mk8s,
command,
imagesummary,
volumeset
items
object[]
query
object