You can call this operation to cancel a running task.


OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer. OpenAPI Explorer dynamically generates the sample code of the operation for different SDKs.

Request parameters

Parameter Type Required Example Description
Action String Yes CancelTask

The operation that you want to perform. Set the value to CancelTask.

TaskNo String Yes 7f217ae0-61f5-42e2-a1c3-42bad0124****

The ID of the task that you want to cancel.

Note You can call the QueryTaskList operation to query the task ID.
UserClientIp String No

The IP address of the client used by the user to initiate the request.

Lang String No en

The language of the error message to return. Valid values:

  • zh: Chinese
  • en: English

Default value: en

Response parameters

Parameter Type Example Description
RequestId String 010E55C9-C64C-4C85-9BB2-7C225ADA6C86

The ID of the request. Request IDs are unique.


Sample requests

http(s)://[Endpoint]/? Action=CancelTask
&<Common request parameters>

Sample success responses

XML format


JSON format

  "code": "200",
  "data": {
    "RequestId": "010E55C9-C64C-4C85-9BB2-7C225ADA6C86",
    "HostId": "",
    "Code": "200",
    "Message": "success"
  "name": "TaskCancellSuccess",
  "message": "success",
  "url": ""

Error codes

For a list of error codes, visit the API Error Center.