Lists query executions and supports multiple filters.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
oos:ListExecutions |
list |
*Execution
*Execution
|
|
None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| RegionId |
string |
No |
The ID of the region. |
cn-hangzhou |
| TemplateName |
string |
No |
The name of the template. This parameter supports fuzzy search. The operation returns executions of templates whose names contain the value you specify. |
MyTemplate |
| Status |
string |
No |
The status of the execution. Valid values: |
Running |
| ExecutionId |
string |
No |
The ID of the execution. |
exec-xxx |
| StartDateBefore |
string |
No |
Specifies a filter to return only executions that started at or before this time. |
2019-05-16T10:26:14Z |
| StartDateAfter |
string |
No |
Specifies a filter to return only executions that started at or after this time. |
2019-05-16T10:26:14Z |
| EndDateBefore |
string |
No |
Specifies a filter to return only executions that ended at or before this time. |
2019-05-16T10:26:14Z |
| EndDateAfter |
string |
No |
Specifies a filter to return only executions that ended at or after this time. |
2019-05-16T10:26:14Z |
| Mode |
string |
No |
The execution mode. Valid values:
|
Automatic |
| ExecutedBy |
string |
No |
The user who started the execution. |
vme |
| ParentExecutionId |
string |
No |
The ID of the parent execution. |
exec-xxx |
| RamRole |
string |
No |
The RAM role. |
OOSServiceRole |
| IncludeChildExecution |
boolean |
No |
Specifies whether to include child executions in the results. The default is False. |
true |
| Category |
string |
No |
The category of the template. Valid values: |
Other |
| Tags |
object |
No |
The tags attached to the execution. |
{ "k1": "v1", "k2": "v2" } |
| MaxResults |
integer |
No |
The number of entries to return on each page. Valid values: 10 to 100. The default is 50. |
50 |
| NextToken |
string |
No |
The pagination token returned from a previous call that you can use to retrieve the next page of results. |
MTRBMDc0NjAtRUJFNy00N0NBLTk3NTctMTJDQzQ |
| SortField |
string |
No |
The field to use for sorting the returned executions. Valid values:
|
StartDate |
| SortOrder |
string |
No |
The sort order. Valid values:
|
Ascending |
| ResourceId |
string |
No |
The ID of the ECS resource. |
i-xxx |
| ResourceTemplateName |
string |
No |
The name of the resource's template. |
ACS-ECS-TEST |
| ResourceGroupId |
string |
No |
The ID of the resource group. |
rg-acfmxsn4m4****** |
| Description |
string |
No |
The description of the execution. |
MyDescription |
| Depth |
string |
No |
The level of execution data to return. Valid values: |
RootDepth |
| Categories |
string |
No |
A list of template categories. Valid values: |
["TimerTrigger"、"EventTrigger"] |
| RdFolderIds |
array |
No |
The IDs of folders in Resource Directory. Use this parameter to query executions within specific folders. |
|
|
string |
No |
The ID of a folder in Resource Directory. |
rd-xxx |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| NextToken |
string |
The token to retrieve the next page of results. |
MTRBMDc0NjAtRUJFNy00N0NBLTk3NTctMTJDQzQ |
| RequestId |
string |
The request ID. |
14A074-47CA-9757-12CC4761D47A |
| MaxResults |
integer |
The number of entries returned per page. |
50 |
| Executions |
array<object> |
The list of executions. |
|
|
array<object> |
|||
| Status |
string |
The status of the execution. Valid values: Started, Queued, Running, Waiting, Success, Failed, and Cancelled. |
Success |
| WaitingStatus |
string |
The waiting status of the execution. |
"" |
| Targets |
string |
The execution's target resources. |
"{"ResourceType": "ALIYUN::ECS::Instance", "Filters": [{"ResourceIds": ["i-bp14z07dg3464980x72o"], "RegionId": "cn-hangzhou", "Type": "ResourceIds"}]}" |
| StatusReason |
string |
The reason for the current status. |
"" |
| Tags |
object |
The execution's tags. |
{} |
| LastSuccessfulTriggerTime |
string |
The last time the template was successfully triggered. |
2019-05-27T09:29:18Z |
| Mode |
string |
The execution mode. |
Automatic |
| SafetyCheck |
string |
The safety check mode. Valid values: Skip and ConfirmEveryHighRiskAction. |
Skip |
| TemplateName |
string |
The name of the template. |
MyTemplate |
| TemplateVersion |
string |
The version of the template. |
v1 |
| CreateDate |
string |
The time the execution was created. |
2019-05-16T10:26:14Z |
| UpdateDate |
string |
The time the execution was last updated. |
2019-05-16T10:26:14Z |
| Description |
string |
The execution's description. |
MyDescription |
| LastTriggerTime |
string |
The last time the template was triggered. |
2019-05-27T09:29:18Z |
| ParentExecutionId |
string |
The parent execution's ID. |
exec-xxx |
| LastTriggerStatus |
string |
The status of the last triggered execution. |
Success |
| StatusMessage |
string |
The status message of the execution. |
“” |
| Outputs |
string |
The execution's outputs. |
{ "InstanceId":"i-xxx" } |
| ExecutedBy |
string |
The user who initiated the execution. |
1309252800 |
| EndDate |
string |
The execution's end time. |
2019-05-16T10:26:14Z |
| IsParent |
boolean |
Indicates whether the execution includes child tasks. |
false |
| StartDate |
string |
The execution's start time. |
2019-05-16T10:26:14Z |
| ExecutionId |
string |
The execution's unique ID. |
exec-44d32b45d2a449e |
| Parameters |
object |
The execution's input parameters. |
{ "Status":"Running" } |
| Counters |
object |
A collection of task counts, categorized by status. |
{"Failed": 0,"Success": 1,"Total": 2} |
| ResourceGroupId |
string |
The resource group's ID. |
rg-acfmxsn4m4****** |
| Category |
string |
The category of the associated template. Valid values: Other, TimerTrigger, EventTrigger, and AlarmTrigger. |
Other |
| TemplateId |
string |
The template's ID. |
123 |
| RamRole |
string |
The RAM role used to execute the template. |
OOSServiceRole |
| ResourceStatus |
string |
The status of the target resources. |
{ "Success": 1 } |
| CurrentTasks |
array<object> |
The tasks currently running. |
|
|
object |
|||
| TaskExecutionId |
string |
The task execution ID. |
task-exec-44d32b45d2a49899#1 |
| TaskName |
string |
The task name. |
installSLSILogtail |
| TaskAction |
string |
The task's action. |
acs::Template |
| LastTriggerStatusMessage |
string |
The status message of the last triggered execution. For executions that are triggered by a timer, event, or alarm, this indicates the status of the most recent execution. For other types of executions, this value is the same as StatusMessage. |
"" |
| LastTriggerOutputs |
string |
The outputs of the last triggered execution. For executions that are triggered by a timer, event, or alarm, this indicates the outputs of the most recent execution. For other types of executions, this value is the same as Outputs. |
{ "InstanceId": "i-xxx" } |
| NextScheduleTime |
string |
The next trigger time for a timer-triggered execution. |
2019-05-16T10:26:14Z |
| AccountId |
string |
The ID of the owning account. |
123456789 |
| TotalCount |
integer |
The total number of executions. |
30 |
Examples
Success response
JSON format
{
"NextToken": "MTRBMDc0NjAtRUJFNy00N0NBLTk3NTctMTJDQzQ",
"RequestId": "14A074-47CA-9757-12CC4761D47A",
"MaxResults": 50,
"Executions": [
{
"Status": "Success",
"WaitingStatus": "\"\"",
"Targets": "\"{\"ResourceType\": \"ALIYUN::ECS::Instance\", \"Filters\": [{\"ResourceIds\": [\"i-bp14z07dg3464980x72o\"], \"RegionId\": \"cn-hangzhou\", \"Type\": \"ResourceIds\"}]}\"",
"StatusReason": "\"\"",
"Tags": {},
"LastSuccessfulTriggerTime": "2019-05-27T09:29:18Z",
"Mode": "Automatic",
"SafetyCheck": "Skip",
"TemplateName": "MyTemplate",
"TemplateVersion": "v1",
"CreateDate": "2019-05-16T10:26:14Z",
"UpdateDate": "2019-05-16T10:26:14Z",
"Description": "MyDescription",
"LastTriggerTime": "2019-05-27T09:29:18Z",
"ParentExecutionId": "exec-xxx",
"LastTriggerStatus": "Success",
"StatusMessage": "“”",
"Outputs": "{ \"InstanceId\":\"i-xxx\" }",
"ExecutedBy": "1309252800",
"EndDate": "2019-05-16T10:26:14Z",
"IsParent": false,
"StartDate": "2019-05-16T10:26:14Z",
"ExecutionId": "exec-44d32b45d2a449e",
"Parameters": {
"Status": "Running"
},
"Counters": {
"Failed": 0,
"Success": 1,
"Total": 2
},
"ResourceGroupId": "rg-acfmxsn4m4******",
"Category": "Other",
"TemplateId": "123",
"RamRole": "OOSServiceRole",
"ResourceStatus": "{ \t\t\t\"Success\": 1 \t\t}",
"CurrentTasks": [
{
"TaskExecutionId": "task-exec-44d32b45d2a49899#1",
"TaskName": "installSLSILogtail",
"TaskAction": "acs::Template"
}
],
"LastTriggerStatusMessage": "\"\"",
"LastTriggerOutputs": "{\n \"InstanceId\": \"i-xxx\"\n}",
"NextScheduleTime": "2019-05-16T10:26:14Z",
"AccountId": "123456789"
}
],
"TotalCount": 30
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.