Getting tasks for which you need update the artifact version
Use the orchestration/executables/tasks endpoint with the
workspaceId and the artifactId query
parameters to obtain a list of the tasks that are using the artifact to be
updated.
Before you begin
-
Generate access tokens:
- For users, generate a personal access token by following Generating a Personal Access Token.
- For service accounts, generate a service access token by following Generating a service account token.
Once generated, a service account token expires after 30 minutes. If it expires, generate a new token using the POST method at the endpoint https://api.<env>.cloud.talend.com/security/oauth/token. For more information about generating a token, see Generating a service account token.
- Ensure that the account to be used to issue API calls has the Operations - Manage (ID: TMC_OPERATOR) permission.
Procedure
Results
{
"id": "your_task_id",
"name": "Hello world task",
"description": "task detail description",
"workspace": {
"id": "your_workspace_id",
"name": "Personal",
"description": "workspace detail description",
"owner": "admin",
"type": "custom",
"environment": {
"id": "your_environment_id",
"name": "Development",
"description": "environment detail description",
"default": true
}
},
"version": "0.1",
"artifact": {
"createDate": "2021-11-22T13:13:27.602Z",
"updateDate": "2021-11-22T13:13:27.602Z",
"id": "id_of_the_artifact_to_be_updated",
"name": "Hello world artifact",
"version": "0.1.0" (The artifact version to be updated)
},
"tags": [
"tag1",
"tag2"
],
"connections": {
"aws": "5d405e381f40e07fbab6757c",
"googledrive": "5d405e831f40e07fbab6757d"
},
"parameters": {
"parameter_p1": "1111",
"custom_parameter": "custom"
},
"resources": {
"resource_file_f1": "5d567ad48f68ae1a1e16e4a4"
},
"autoUpgradeInfo": {
"autoUpgradable": false,
"overrideWithDefaultParameters": false
}
}