Aliyun How to query the task List

Source: Internet
Author: User
Tags error code time interval aliyun

  Describetasks

Describe

Queries the progress of the specified asynchronous request.

Request parameters

name type whether you must Description
Action String Is Operation interface Name, value: Describetasks.
RegionID String Is Domain ID
Taskaction String Whether The interface name of the task action,
The supported interfaces are:
  • Importimage
  • Exportimage
Taskids String Whether Task IDs, supports up to 100, separated by commas
TaskStatus String Whether Task status,
Optional values:
  • Finished is complete
  • Processing in operation
  • Pending Waiting for execution
  • Deleted has been canceled
  • Paused pause
Default value: None
StartTime String Whether Query by creation time to create a starting point for the time interval. The type of time is indicated by the ISO8601 standard and needs to use UTC time. The format is: Yyyy-mm-ddthh:mmz.
Endtime String Whether Query by creation time to create the end point of the time interval. The type of time is indicated by the ISO8601 standard and needs to use UTC time. The format is: Yyyy-mm-ddthh:mmz.
PageNumber Integer Whether The page number of the query result, the starting value is 1, and the default value is 1.
PageSize Integer Whether The number of records per page set when paging a query, with a maximum value of 100 lines and a default of 10.

return parameters

name type Description
TaskSet TaskType Task Collection
RegionID String Domain ID
TotalCount Integer Number of list bar entries
PageNumber Integer Current page number
PageSize Integer How many entries are present in the paging

Error code

invalidparameter
error code Description Http status code semantics
missingparameter the input parameter "RegionID" that are mandatory for processi Ng this request are not supplied. 400 missing regionid field
400 specified pagenumber illegal
invalidparameter the specified parameter "PageSize" is not valid. 400 specified pagesize illegal

Example

Request sample

Https://ecs.aliyuncs.com/?Action=DescribeTasks &regionid=cn-hangzhou &< Public Request Parameters >

Return sample

JSON format

{

"PageNumber": 1,

"TotalCount": 2,

"PageSize": 2,

"RegionID": "Cn-hangzhou",

"RequestID": "f746c690-d9ea-4f87-af31-8e1910fab541",

"TaskSet": {

"Task": [

{

"CreationTime": "2015-11-24t12:50z",

"Finishedtime": "2015-11-24t12:50z",

"Supportcancel": true,

"Taskaction": "Importimage",

"TaskStatus": "Finished",

"TaskId": "t-23mo8zf9w"

},

{

"CreationTime": "2015-11-23t15:10z",

"Finishedtime": "2015-11-23t15:16z",

"Supportcancel": true,

"Taskaction": "Importimage",

"TaskStatus": "Finished",

"TaskId": "T-23sgu0dyj"

}

]

}

}

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.