Queries task executions. Multiple methods are supported to filter task executions.
Debugging
Authorization information
The following table shows the authorization information corresponding to the API. The authorization information can be used in the Action
policy element to grant a RAM user or RAM role the permissions to call this API operation. Description:
- Operation: the value that you can use in the Action element to specify the operation on a resource.
- Access level: the access level of each operation. The levels are read, write, and list.
- Resource type: the type of the resource on which you can authorize the RAM user or the RAM role to perform the operation. Take note of the following items:
- The required resource types are displayed in bold characters.
- If the permissions cannot be granted at the resource level,
All Resources
is used in the Resource type column of the operation.
- Condition Key: the condition key that is defined by the cloud service.
- Associated operation: other operations that the RAM user or the RAM role must have permissions to perform to complete the operation. To complete the operation, the RAM user or the RAM role must have the permissions to perform the associated operations.
Operation | Access level | Resource type | Condition key | Associated operation |
---|---|---|---|---|
oos:ListTaskExecutions | get |
|
| none |
Request syntax
POST /ListTaskExecutions HTTP/1.1
GET /ListTaskExecutions HTTP/1.1
POST /ListTaskExecutions HTTP/1.1
GET /ListTaskExecutions HTTP/1.1
Request parameters
Parameter | Type | Required | Description | Example |
---|---|---|---|---|
RegionId | string | No | The ID of the execution. | cn-hangzhou |
ExecutionId | string | No | The status of the execution. Valid values: Running, Started, Success, Failed, Waiting, Cancelled, Pending, and Skipped. | exec-xxx |
Status | string | No | Specifies to query task executions that start to run at or before the specified time. | Running |
StartDateBefore | string | No | Specifies to query task executions that start to run at or later than the specified time. | 2019-05-16T10:26:14Z |
StartDateAfter | string | No | Specifies to query task executions that stop running at or before the specified time. | 2019-05-16T10:26:14Z |
EndDateBefore | string | No | Specifies to query task executions that stop running at or later than the specified time. | 2019-05-16T10:26:14Z |
EndDateAfter | string | No | The execution ID of the task. | 2019-05-16T10:26:14Z |
TaskExecutionId | string | No | The name of the task. | task-exec-xxx |
TaskName | string | No | The action of the task. | describeInstance |
TaskAction | string | No | The execution ID of the parent node. In a loop task, set this parameter to the execution ID of the parent node. | ACS::Sleep |
ParentTaskExecutionId | string | No | Specifies whether to show the child nodes in the loop task. Default value: False. | task-exec-xxx |
IncludeChildTaskExecution | boolean | No | The number of entries to return on each page. Valid values: 20 to 100. Default value: 50. | false |
MaxResults | integer | No | The token that is used to retrieve the next page of results. | 50 |
NextToken | string | No | Sorts the task executions to query. Valid values:
| MTRBMDc0NjAtRUJFNy00N0NBLTk3NTctMTJDQzQ3NjFENDdB |
SortField | string | No | The order in which you want to sort the task executions to query. Valid values:
| StartDate |
SortOrder | string | No | The token that is used to retrieve the next page of results. | Ascending |
Response parameters
Examples
Sample success responses
JSON
format
{
"NextToken": "MTRBMDc0NjAtRUJFNy00N0NBLTk3NTctMTJDQzQ3NjFENDdB",
"RequestId": "CDABABABAB-FC28-4D9C-8FB5-68DC6F0486FC",
"MaxResults": 50,
"TaskExecutions": [
{
"ChildExecutionId": "exec-xxx",
"Outputs": "{ \"InstanceId\":\"i-xxx\" }",
"Status": "Running",
"EndDate": "2019-05-16T10:26:14Z",
"ParentTaskExecutionId": "task-exec-xxx",
"TaskName": "describeInstance\t",
"StartDate": "2019-05-16T10:26:14Z",
"LoopItem": "i-1234566zxcvvb",
"CreateDate": "2019-05-16T10:26:14Z",
"ExecutionId": "exec-44d32b45d2a449e49899",
"TaskAction": "ACS::Sleep",
"TaskExecutionId": "task-exec-xxx",
"UpdateDate": "2019-05-16T10:26:14Z",
"Loop": {},
"TemplateId": "xxx",
"LoopBatchNumber": 2,
"StatusMessage": "\"\"",
"ExtraData": {
"NotifyNote": ""
},
"Properties": "{ \"Status\":\"Running\" }"
}
]
}
Error codes
For a list of error codes, visit the Service error codes.
Change history
Change time | Summary of changes | Operation |
---|---|---|
2023-08-15 | The internal configuration of the API is changed, but the call is not affected | View Change Details |