Skip to main content

Get All Task Definitions

Endpoint: GET /api/metadata/taskdefs

Gets all the task definitions in the cluster.

Query parameters

ParameterDescriptionTypeRequired/ Optional
accessThe access level being requested. Supported values: READ, CREATE, UPDATE, EXECUTE, and DELETE. Default is READ.stringOptional.
metadataWhether metadata (such as tags) should be included in the response. Default is false.booleanOptional.
tagKeyOption to filter based on the tag key associated with the task definitions.stringOptional.
tagValueOption to filter based on the tag value associated with the task definitions.stringOptional.

Response

Returns an array containing all the task definitions in the cluster, optionally including metadata such as tags based on the query parameters.

Examples

Get all task definitions with a specific tag

Request

curl -X 'GET' \
'https://<YOUR_CLUSTER>/api/metadata/taskdefs?access=READ&metadata=false&tagKey=team&tagValue=engineering' \
-H 'accept: */*' \
-H 'X-Authorization: <TOKEN>'

Response

Returns all task definitions with tag team:engineering.

[
{
"ownerApp": "string",
"createTime": 0,
"updateTime": 1735634595302,
"createdBy": "string",
"updatedBy": "john.doe@acme.com",
"name": "string",
"description": "string",
"retryCount": 0,
"timeoutSeconds": 0,
"inputKeys": ["string"],
"outputKeys": ["string"],
"timeoutPolicy": "RETRY",
"retryLogic": "FIXED",
"retryDelaySeconds": 0,
"responseTimeoutSeconds": 1,
"concurrentExecLimit": 0,
"inputTemplate": {
"additionalProp1": {},
"additionalProp2": {},
"additionalProp3": {}
},
"rateLimitPerFrequency": 0,
"rateLimitFrequencyInSeconds": 0,
"isolationGroupId": "string",
"executionNameSpace": "string",
"ownerEmail": "john.doe@acme.com",
"pollTimeoutSeconds": 0,
"backoffScaleFactor": 1,
"totalTimeoutSeconds": 0,
"inputSchema": {
"ownerApp": "string",
"createTime": 0,
"updateTime": 0,
"createdBy": "string",
"updatedBy": "string",
"name": "string-11",
"version": 0,
"type": "JSON",
"data": {
"additionalProp1": {},
"additionalProp2": {},
"additionalProp3": {}
},
"externalRef": "string"
},
"outputSchema": {
"ownerApp": "string",
"createTime": 0,
"updateTime": 0,
"createdBy": "string",
"updatedBy": "string",
"name": "string",
"version": 0,
"type": "JSON",
"data": {
"additionalProp1": {},
"additionalProp2": {},
"additionalProp3": {}
},
"externalRef": "string"
},
"enforceSchema": true,
"overwriteTags": true,
"tags": [
{
"key": "team",
"value": "engineering"
}
]
}
]
Get all task definitions with metadata set to true

Request

curl -X 'GET' \
'https://<YOUR-CLUSTER>/api/metadata/taskdefs?access=EXECUTE&metadata=true' \
-H 'accept: */*' \
-H '
X-Authorization: <TOKEN>'

Response

Returns an array containing all the task definitions in the cluster, including their tags metadata. For example:

//truncated response
{
"createTime": 1746599870085,
"updateTime": 1746599870085,
"createdBy": "john.doe@acme.com",
"updatedBy": "john.doe@acme.com",
"name": "hello_task",
"description": "",
"retryCount": 3,
"timeoutSeconds": 3600,
"inputKeys": [],
"outputKeys": [],
"timeoutPolicy": "TIME_OUT_WF",
"retryLogic": "FIXED",
"retryDelaySeconds": 60,
"responseTimeoutSeconds": 600,
"concurrentExecLimit": 0,
"inputTemplate": {},
"rateLimitPerFrequency": 0,
"rateLimitFrequencyInSeconds": 1,
"ownerEmail": "john.doe@acme.com",
"pollTimeoutSeconds": 3600,
"backoffScaleFactor": 1,
"totalTimeoutSeconds": 0,
"enforceSchema": false,
"overwriteTags": true,
"tags": [
{
"key": "tag",
"value": "new"
}
]
}
Get all task definitions with metadata set to false

Request

curl -X 'GET' \
'https://<YOUR-CLUSTER>/api/metadata/taskdefs?access=EXECUTE&metadata=false' \
-H 'accept: */*' \
-H '
X-Authorization: <TOKEN>'

Response

Returns an array containing all the task definitions in the cluster without any tag metadata. For example:

//truncated response
{
"createTime": 1746599870085,
"updateTime": 1746599870085,
"createdBy": "john.doe@acme.com",
"updatedBy": "john.doe@acme.com",
"name": "hello_task",
"description": "",
"retryCount": 3,
"timeoutSeconds": 3600,
"inputKeys": [],
"outputKeys": [],
"timeoutPolicy": "TIME_OUT_WF",
"retryLogic": "FIXED",
"retryDelaySeconds": 60,
"responseTimeoutSeconds": 600,
"concurrentExecLimit": 0,
"inputTemplate": {},
"rateLimitPerFrequency": 0,
"rateLimitFrequencyInSeconds": 1,
"ownerEmail": "john.doe@acme.com",
"pollTimeoutSeconds": 3600,
"backoffScaleFactor": 1,
"totalTimeoutSeconds": 0,
"enforceSchema": false
}