Cancel a task
Describe
A running task can be canceled through this interface. Only two types of tasks are currently supported for Importimage and Exportimage.
Request parameters
name |
type |
whether you must |
Description |
Action |
String |
Is |
Operation interface Name, value: Canceltask. |
RegionID |
String |
Is |
Domain ID |
TaskId |
String |
Is |
Task ID |
return parameters
All public return parameters, as detailed in the public return parameters
Error code
Error code |
Description |
Http Status Code |
Semantics |
Missingparameter |
An input parameter "RegionID" This is mandatory for processing the request isn't supplied. |
400 |
Missing RegionID value |
Missingparameter |
An input parameter "TaskId" This is mandatory for processing the request isn't supplied. |
400 |
Missing TaskId value |
Regionid.notfound |
The specified region is not found. |
400 |
The specified RegionID does not exist |
Invalidtaskid.notfound |
The specified taskId is not found. |
400 |
The specified task ID does not exist |
Incorrecttaskstatus |
The specified task status is not invalid. |
403 |
The specified task status is not correct |
Taskactionnotsupport |
The specified task action is not support |
400 |
The task type does not support canceling |
Canceltaskfailed |
The task is failed to cancel and please contact the administrator. |
400 |
Failed to cancel the task, please contact the Administrator |
Example
Request sample
Https://ecs.aliyuncs.com/?Action=CancelTask
®ionid=cn-hangzhou
&taskid=t-23ym6mvro
&< Public Request Parameters >
Return sample
JSON format
{"RequestID": "4be2c7fe-c7a4-4675-a153-174e032aab