Queries task executions and supports multiple filtering methods.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
oos:ListTaskExecutions |
get |
*Execution
|
|
None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| RegionId |
string |
No |
The region ID. |
cn-hangzhou |
| ExecutionId |
string |
No |
The execution ID. |
exec-xxx |
| Status |
string |
No |
The execution status. Valid values: Running, Started, Success, Failed, Waiting, Cancelled, Pending, and Skipped. |
Running |
| StartDateBefore |
string |
No |
The executions that started on or before the specified time. |
2019-05-16T10:26:14Z |
| StartDateAfter |
string |
No |
The executions that started on or after the specified time. |
2019-05-16T10:26:14Z |
| EndDateBefore |
string |
No |
The executions that ended on or before the specified time. |
2019-05-16T10:26:14Z |
| EndDateAfter |
string |
No |
The executions that ended on or after the specified time. |
2019-05-16T10:26:14Z |
| TaskExecutionId |
string |
No |
The task execution ID. |
task-exec-xxx |
| TaskName |
string |
No |
The task name. |
describeInstance |
| TaskAction |
string |
No |
The task action. |
ACS::Sleep |
| ParentTaskExecutionId |
string |
No |
The parent task execution ID. This parameter is used for loop tasks and is typically the TaskExecutionId of the parent loop task. |
task-exec-xxx |
| IncludeChildTaskExecution |
boolean |
No |
Specifies whether to include child tasks generated by a loop. Default value: false. |
false |
| MaxResults |
integer |
No |
The maximum number of entries per page. Valid values: 20 to 100. Default value: 50. |
50 |
| NextToken |
string |
No |
The pagination token. |
MTRBMDc0NjAtRUJFNy00N0NBLTk3NTctMTJDQzQ3NjFENDdB |
| SortField |
string |
No |
The sort field. Valid values:
|
StartDate |
| SortOrder |
string |
No |
The sort order. Valid values:
|
Ascending |
| AccountId |
string |
No |
The account ID. |
123456789 |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| NextToken |
string |
The pagination token. |
MTRBMDc0NjAtRUJFNy00N0NBLTk3NTctMTJDQzQ3NjFENDdB |
| RequestId |
string |
The request ID. |
CDABABABAB-FC28-4D9C-8FB5-68DC6F0486FC |
| MaxResults |
integer |
The maximum number of entries per page. |
50 |
| TaskExecutions |
array<object> |
The execution data. |
|
|
array<object> |
The task execution information. |
||
| ChildExecutionId |
string |
The child task execution ID. |
exec-xxx |
| Outputs |
string |
The execution output. |
{ "InstanceId":"i-xxx" } |
| Status |
string |
The task status. |
Running |
| EndDate |
string |
The end time in ISO 8601 format. The time is displayed in UTC. |
2019-05-16T10:26:14Z |
| ParentTaskExecutionId |
string |
The parent task execution ID. |
task-exec-xxx |
| TaskName |
string |
The task name. |
describeInstance |
| StartDate |
string |
The start time in ISO 8601 format. The time is displayed in UTC. |
2019-05-16T10:26:14Z |
| LoopItem |
string |
The element in the loop. |
i-1234566zxcvvb |
| CreateDate |
string |
The creation time of the execution in ISO 8601 format. The time is displayed in UTC. |
2019-05-16T10:26:14Z |
| ExecutionId |
string |
The execution ID. |
exec-44d32b45d2a449e49899 |
| TaskAction |
string |
The task action. |
ACS::Sleep |
| TaskExecutionId |
string |
The task execution ID. |
task-exec-xxx |
| UpdateDate |
string |
The update time in ISO 8601 format. The time is displayed in UTC. |
2019-05-16T10:26:14Z |
| Loop |
object |
The loop configuration and statistics information. This information is available only for the parent node of a loop. |
{} |
| TemplateId |
string |
The template ID. |
xxx |
| LoopBatchNumber |
integer |
The loop batch number. |
2 |
| StatusMessage |
string |
The status message. |
"" |
| ExtraData |
object |
The extra data. |
{ "NotifyNote":"" } |
| Properties |
string |
The input parameters of the execution. |
{ "Status":"Running" } |
Examples
Success response
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
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.