Use this call to get the status of an ongoing deletion task.
Note: You can cancel an ongoing monitoring task if you make the same call using the DELETE verb instead of the GET one.
In the response:
currentStepis the task associated with the specifiedtaskID.taskStateis the status of that deletion task.progressis a double that is typically 1.0.resultis a JSON object that indicates the object ID, and whether the task succeeded.
Note: For a deletion action, failureDumpAvailable is always false.
taskIDis the ID that you specified in the request.
Here's a list of each possible taskState:
| Status | Description |
| NOT_STARTED | The task is scheduled to run, but has not started yet. |
| IN_PROGRESS | The task is currently running. |
| COMPLETE | The task has finished running whether successful or not. |
| CANCELLING | The task is currently being canceled. Cancellation is not yet complete. |
| CANCELLED | The task has been canceled and the changes have been rolled back. |
Method and endpoint
/workspaces/{workspaceId}/models/{modelId}/actions/{actionId}/tasks/{taskId}
Parameters
| Parameter | Description |
workspaceId |
|
modelId |
|
actionId |
|
taskId |
|
Curl example
curl -X GET \
https://api.anaplan.com/2/0/workspaces/{workspaceId}/models/{modelId}/actions/{actionId}/tasks/{taskId} \
-H 'authorization: AnaplanAuthToken {anaplan_auth_token}' \
-H 'Content-Type:application/json'
Response
Response 200 (application/json)
{
"task":{
"type":"taskInformation",
"taskId":"0690AA1C761F48549C3442A02F91D962",
"currentStep":"Complete.",
"progress":1,
"result":{
"failureDumpAvailable":false,
"objectId":"117000000019",
"successful":true
},
"taskState":"COMPLETE"
}
}