Skip to main content
POST
/
org
/
{org}
/
task
/
-query
Get all tasks based on a query
curl --request POST \
  --url https://api.cpln.io/org/{org}/task/-query \
  --header 'Authorization: <api-key>' \
  --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"
      }
    }
  }
}

Documentation Index

Fetch the complete documentation index at: https://docs.controlplane.com/llms.txt

Use this file to discover all available pages before exploring further.

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

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