Queries task executions using multiple filters.
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 to filter by. Valid values: | Running |
StartDateBefore | string | No | Filters for executions that started on or before the specified time. The time must be in ISO 8601 format. | 2019-05-16T10:26:14Z |
StartDateAfter | string | No | Filters for executions that started on or after the specified time. The time must be in ISO 8601 format. | 2019-05-16T10:26:14Z |
EndDateBefore | string | No | Filters for executions that ended on or before the specified time. The time must be in ISO 8601 format. | 2019-05-16T10:26:14Z |
EndDateAfter | string | No | Filters for executions that ended on or after the specified time. The time must be in ISO 8601 format. | 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 in loop scenarios to specify the execution of the parent task. | task-exec-xxx |
IncludeChildTaskExecution | boolean | No | Specifies whether to include child task executions that are generated by a loop. Default: | false |
MaxResults | integer | No | The maximum number of items to return per page. Valid range: 20 to 100. Default: 50. | 50 |
NextToken | string | No | The token to request the next page of results. You can get this value from the | MTRBMDc0NjAtRUJFNy00N0NBLTk3NTctMTJDQzQ3NjFENDdB |
SortField | string | No | The sort field for the results. Valid values:
| StartDate |
SortOrder | string | No | The sort order for the results. Valid values:
| Ascending |
Response elements
Element | Type | Description | Example |
object | |||
NextToken | string | The token used to retrieve the next page of results. | MTRBMDc0NjAtRUJFNy00N0NBLTk3NTctMTJDQzQ3NjFENDdB |
RequestId | string | The ID of the request. | CDABABABAB-FC28-4D9C-8FB5-68DC6F0486FC |
MaxResults | integer | The maximum number of entries to return on each page. | 50 |
| TaskExecutions | array<object> | The details of the task executions. | |
array<object> | |||
ChildExecutionId | string | The ID of the child execution. | exec-xxx |
Outputs | string | The output of the task execution. | { "InstanceId":"i-xxx" } |
Status | string | The status of the task execution. | Running |
EndDate | string | The time the task execution ended, in ISO 8601 format. | 2019-05-16T10:26:14Z |
ParentTaskExecutionId | string | The ID of the parent task execution. | task-exec-xxx |
TaskName | string | The name of the task. | describeInstance |
StartDate | string | The time the task execution started, in ISO 8601 format. | 2019-05-16T10:26:14Z |
LoopItem | string | The current item in a loop. | i-1234566zxcvvb |
CreateDate | string | The time the task execution was created, in ISO 8601 format. | 2019-05-16T10:26:14Z |
ExecutionId | string | The ID of the execution. | exec-44d32b45d2a449e49899 |
TaskAction | string | The action of the task. | ACS::Sleep |
TaskExecutionId | string | The ID of the task execution. | task-exec-xxx |
UpdateDate | string | The time the task execution was last updated, in ISO 8601 format. | 2019-05-16T10:26:14Z |
Loop | object | The loop configurations and statistics. This parameter is returned only for parent loop nodes. | {} |
TemplateId | string | The ID of the template. | xxx |
LoopBatchNumber | integer | The number of loop batches. | 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.