Aliyun How to use the Cancel task interface

Source: Internet
Author: User
Tags error code aliyun

  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

&regionid=cn-hangzhou

&taskid=t-23ym6mvro

&< Public Request Parameters >

Return sample

JSON format

{"RequestID": "4be2c7fe-c7a4-4675-a153-174e032aab

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.