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:
|
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 ®ionid=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"
}
]
}
}