Queries the list of tasks of an Elastic Cloud Phone (ECP) instance.
Debugging
Authorization information
Request parameters
Parameter | Type | Required | Description | Example |
---|---|---|---|---|
RegionId | string | Yes | The region ID. | cn-hangzhou |
TaskId | array | No | The task IDs. Valid values of N: 1 to 100. | |
string | No | The task ID. Valid values of N: 1 to 100. | t-bp67acfmxazb4p**** | |
TaskStatus | string | No | The task state. Valid values:
This parameter is empty by default. Note
The system only queries tasks that are in the Finished, Processing, and Failed states and ignores other values.
| Finished |
TaskType | string | No | The name of the operation that you can call to execute the task on the instance. Valid values:
| Shell |
InstanceId | string | No | The instance ID. | cp-acfmxazb4p*** |
NextToken | string | No | The pagination token that is used in the next request to retrieve a new page of results. You do not need to specify this parameter for the first request. You must specify the token that is obtained from the previous query as the value of NextToken. | 55C15B1C-D507-45F0-B490-69D6E0F113C6 |
MaxResults | integer | No | The maximum number of entries to return on each page. Valid values: 1 to 100. Default value: 50. | 50 |
Response parameters
Examples
Sample success responses
JSON
format
{
"NextToken": "ADBAAdDWBF2****",
"RequestId": "473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E",
"TotalCount": 1,
"MaxResults": 50,
"RegionId": "cn-hangzhou",
"Tasks": {
"Task": [
{
"TaskType": "Shell",
"Progress": "100%",
"TaskStatus": "Finished",
"ExecuteMsg": "file1 file2",
"CreateTime": "2021-04-15 10:10:00",
"FinishedTime": "2021-04-15 10:10:01",
"InstanceId": "cp-acfmxazb4p***",
"TaskId": "t-bp67acfmxazb4p****"
}
]
}
}
Error codes
For a list of error codes, visit the Service error codes.