You can call this operation to query stacks and their resource events.
Debugging
Request parameters
Parameter | Type | Required | Example | Description |
---|---|---|---|---|
Action | String | Yes | ListStackEvents |
The operation that you want to perform. Set the value to ListStackEvents. |
RegionId | String | Yes | cn-hangzhou |
The region ID of the stack. You can call the DescribeRegions operation to query the most recent region list. |
StackId | String | Yes | 4a6c9851-3b0f-4f5f-b4ca-a14bf691**** |
The ID of the stack. |
Status.N | RepeatList | No | CREATE_IN_PROGRESS |
The status of resource N. Valid values:
|
ResourceType.N | RepeatList | No | ALIYUN::ECS::Instance |
The type of resource N. Maximum value of N: 200. |
LogicalResourceId.N | RepeatList | No | WebServer |
The logical ID of the resource as defined in the template. |
PageNumber | Long | No | 1 |
The number of the page to return. Pages start from page 1. Default value: 1. |
PageSize | Long | No | 10 |
The number of entries to return on each page. Maximum value: 50. Default value: 10. |
Response parameters
Parameter | Type | Example | Description |
---|---|---|---|
Events | Array |
The list of events. |
|
CreateTime | String | 2019-08-01T04:07:39 |
The time when the task was created. The time follows the ISO 8601 standard in the YYYY-MM-DDThh:mm:ssZ format. The time is displayed in UTC. |
EventId | String | 0086612d-77cf-4056-b0b5-ff8e94ad**** |
The ID of the event. |
LogicalResourceId | String | WebServer |
The logical ID of the resource as defined in the template. |
PhysicalResourceId | String | i-m5e3tfdbinchnexh**** |
The physical ID of the resource. |
ResourceType | String | ALIYUN::ECS::Instance |
The type of the resource. |
StackId | String | 4a6c9851-3b0f-4f5f-b4ca-a14bf691**** |
The ID of the stack. |
StackName | String | StackName |
The name of the stack. |
Status | String | CREATE_COMPLETE |
The status of the resource. |
StatusReason | String | state changed |
The reason that the resource is in its current state. |
PageNumber | Integer | 1 |
The page number of the returned page. Pages start from page 1. Default value: 1. |
PageSize | Integer | 10 |
The number of entries returned per page. Maximum value: 50. Default value: 10. |
RequestId | String | B288A0BE-D927-4888-B0F7-B35EF84B6E6 |
The ID of the request. |
TotalCount | Integer | 20 |
The total number of returned events. |
Examples
Sample requests
http(s)://ros.aliyuncs.com/? Action=ListStackEvents
&RegionId=cn-hangzhou
&StackId=4a6c9851-3b0f-4f5f-b4ca-a14bf691****
&<Common request parameters>
Sample success responses
XML
format
<ListStackEventsResponse>
<Events class="array">
<Event class="object">
<CreationTime type="string">2019-08-01T05:57:56</CreationTime>
<EventId type="string">0086612d-77cf-4056-b0b5-ff8e94ad****</EventId>
<LogicalResourceId type="string">test-describe-events</LogicalResourceId>
<PhysicalResourceId type="string">57d0946e-c7f4-4f4e-89ae-0d4301a2****</PhysicalResourceId>
<ResourceType type="string">ALIYUN::ROS::Stack</ResourceType>
<StackId type="string">57d0946e-c7f4-4f4e-89ae-0d4301a2****</StackId>
<StackName type="string">test-describe-events</StackName>
<Status type="string">UPDATE_COMPLETE</Status>
<StatusReason type="string">Stack successfully updated</StatusReason>
</Event>
<Event class="object">
<CreationTime type="string">2019-08-01T05:57:55</CreationTime>
<EventId type="string">2b900d01-959b-49a8-8cfe-f7de87aa****</EventId>
<LogicalResourceId type="string">dummy</LogicalResourceId>
<PhysicalResourceId type="string">a</PhysicalResourceId>
<ResourceType type="string">ALIYUN::DEBUG::Dummy</ResourceType>
<StackId type="string">57d0946e-c7f4-4f4e-89ae-0d4301a2****</StackId>
<StackName type="string">test-describe-events</StackName>
<Status type="string">UPDATE_COMPLETE</Status>
<StatusReason type="string">state changed</StatusReason>
</Event>
<Event class="object">
<CreationTime type="string">2019-08-01T05:57:55</CreationTime>
<EventId type="string">30f721d4-8124-4fd4-8afd-7b21471f****</EventId>
<LogicalResourceId type="string">dummy3</LogicalResourceId>
<PhysicalResourceId type="string">a</PhysicalResourceId>
<ResourceType type="string">ALIYUN::DEBUG::Dummy</ResourceType>
<StackId type="string">57d0946e-c7f4-4f4e-89ae-0d4301a2****</StackId>
<StackName type="string">test-describe-events</StackName>
<Status type="string">CREATE_COMPLETE</Status>
<StatusReason type="string">state changed</StatusReason>
</Event>
<Event class="object">
<CreationTime type="string">2019-08-01T05:57:54</CreationTime>
<EventId type="string">b5ecc0ac-f855-4503-945c-82d398a2****</EventId>
<LogicalResourceId type="string">WaitConditionHandle</LogicalResourceId>
<ResourceType type="string">ALIYUN::ROS::WaitConditionHandle</ResourceType>
<StackId type="string">57d0946e-c7f4-4f4e-89ae-0d4301a2****</StackId>
<StackName type="string">test-describe-events</StackName>
<Status type="string">UPDATE_COMPLETE</Status>
<StatusReason type="string">state changed</StatusReason>
</Event>
<Event class="object">
<CreationTime type="string">2019-08-01T05:57:53</CreationTime>
<EventId type="string">a01e5730-7244-414e-b9ff-f97e3885****</EventId>
<LogicalResourceId type="string">dummy3</LogicalResourceId>
<ResourceType type="string">ALIYUN::DEBUG::Dummy</ResourceType>
<StackId type="string">57d0946e-c7f4-4f4e-89ae-0d4301a2****</StackId>
<StackName type="string">test-describe-events</StackName>
<Status type="string">CREATE_IN_PROGRESS</Status>
<StatusReason type="string">state changed</StatusReason>
</Event>
<Event class="object">
<CreationTime type="string">2019-08-01T05:57:53</CreationTime>
<EventId type="string">262b2f54-7ae7-4cf6-9c8a-eb4d0801****</EventId>
<LogicalResourceId type="string">dummy</LogicalResourceId>
<PhysicalResourceId type="string">a</PhysicalResourceId>
<ResourceType type="string">ALIYUN::DEBUG::Dummy</ResourceType>
<StackId type="string">57d0946e-c7f4-4f4e-89ae-0d4301a2****</StackId>
<StackName type="string">test-describe-events</StackName>
<Status type="string">UPDATE_IN_PROGRESS</Status>
<StatusReason type="string">state changed</StatusReason>
</Event>
<Event class="object">
<CreationTime type="string">2019-08-01T05:57:53</CreationTime>
<EventId type="string">163c3965-1617-4787-ba08-1eed0e3a****</EventId>
<LogicalResourceId type="string">nested</LogicalResourceId>
<PhysicalResourceId type="string">4ed7ab13-c912-4239-b064-8cea7caa****</PhysicalResourceId>
<ResourceType type="string">ALIYUN::ROS::Stack</ResourceType>
<StackId type="string">57d0946e-c7f4-4f4e-89ae-0d4301a2****</StackId>
<StackName type="string">test-describe-events</StackName>
<Status type="string">UPDATE_COMPLETE</Status>
<StatusReason type="string">state changed</StatusReason>
</Event>
<Event class="object">
<CreationTime type="string">2019-08-01T05:57:53</CreationTime>
<EventId type="string">71f7c25c-2ac7-4336-9934-85482111****</EventId>
<LogicalResourceId type="string">nested</LogicalResourceId>
<PhysicalResourceId type="string">4ed7ab13-c912-4239-b064-8cea7caa****</PhysicalResourceId>
<ResourceType type="string">ALIYUN::ROS::Stack</ResourceType>
<StackId type="string">57d0946e-c7f4-4f4e-89ae-0d4301a2****</StackId>
<StackName type="string">test-describe-events</StackName>
<Status type="string">UPDATE_IN_PROGRESS</Status>
<StatusReason type="string">state changed</StatusReason>
</Event>
<Event class="object">
<CreationTime type="string">2019-08-01T05:57:53</CreationTime>
<EventId type="string">a5a0eb9e-7abe-44a1-a376-70955211****</EventId>
<LogicalResourceId type="string">WaitConditionHandle</LogicalResourceId>
<ResourceType type="string">ALIYUN::ROS::WaitConditionHandle</ResourceType>
<StackId type="string">57d0946e-c7f4-4f4e-89ae-0d4301a2****</StackId>
<StackName type="string">test-describe-events</StackName>
<Status type="string">UPDATE_IN_PROGRESS</Status>
<StatusReason type="string">state changed</StatusReason>
</Event>
<Event class="object">
<CreationTime type="string">2019-08-01T05:57:53</CreationTime>
<EventId type="string">250f5003-f59d-46f9-8471-65d0c630****</EventId>
<LogicalResourceId type="string">test-describe-events</LogicalResourceId>
<PhysicalResourceId type="string">57d0946e-c7f4-4f4e-89ae-0d4301a2****</PhysicalResourceId>
<ResourceType type="string">ALIYUN::ROS::Stack</ResourceType>
<StackId type="string">57d0946e-c7f4-4f4e-89ae-0d4301a2****</StackId>
<StackName type="string">test-describe-events</StackName>
<Status type="string">UPDATE_IN_PROGRESS</Status>
<StatusReason type="string">Stack UPDATE started</StatusReason>
</Event>
</Events>
<PageNumber type="number">1</PageNumber>
<PageSize type="number">10</PageSize>
<RequestId type="string">B288A0BE-D927-4888-B0F7-B35EF84B6E6F</RequestId>
<TotalCount type="number">20</TotalCount>
</ListStackEventsResponse>
JSON
format
{
"Events": [
{
"CreationTime": "2019-08-01T05:57:56",
"EventId": "0086612d-77cf-4056-b0b5-ff8e94ad****",
"LogicalResourceId": "test-describe-events",
"PhysicalResourceId": "57d0946e-c7f4-4f4e-89ae-0d4301a2****",
"ResourceType": "ALIYUN::ROS::Stack",
"StackId": "57d0946e-c7f4-4f4e-89ae-0d4301a2****",
"StackName": "test-describe-events",
"Status": "UPDATE_COMPLETE",
"StatusReason": "Stack successfully updated"
},
{
"CreationTime": "2019-08-01T05:57:55",
"EventId": "2b900d01-959b-49a8-8cfe-f7de87aa****",
"LogicalResourceId": "dummy",
"PhysicalResourceId": "a",
"ResourceType": "ALIYUN::DEBUG::Dummy",
"StackId": "57d0946e-c7f4-4f4e-89ae-0d4301a2****",
"StackName": "test-describe-events",
"Status": "UPDATE_COMPLETE",
"StatusReason": "state changed"
},
{
"CreationTime": "2019-08-01T05:57:55",
"EventId": "30f721d4-8124-4fd4-8afd-7b21471f****",
"LogicalResourceId": "dummy3",
"PhysicalResourceId": "a",
"ResourceType": "ALIYUN::DEBUG::Dummy",
"StackId": "57d0946e-c7f4-4f4e-89ae-0d4301a2****",
"StackName": "test-describe-events",
"Status": "CREATE_COMPLETE",
"StatusReason": "state changed"
},
{
"CreationTime": "2019-08-01T05:57:54",
"EventId": "b5ecc0ac-f855-4503-945c-82d398a2****",
"LogicalResourceId": "WaitConditionHandle",
"ResourceType": "ALIYUN::ROS::WaitConditionHandle",
"StackId": "57d0946e-c7f4-4f4e-89ae-0d4301a2****",
"StackName": "test-describe-events",
"Status": "UPDATE_COMPLETE",
"StatusReason": "state changed"
},
{
"CreationTime": "2019-08-01T05:57:53",
"EventId": "a01e5730-7244-414e-b9ff-f97e3885****",
"LogicalResourceId": "dummy3",
"ResourceType": "ALIYUN::DEBUG::Dummy",
"StackId": "57d0946e-c7f4-4f4e-89ae-0d4301a2****",
"StackName": "test-describe-events",
"Status": "CREATE_IN_PROGRESS",
"StatusReason": "state changed"
},
{
"CreationTime": "2019-08-01T05:57:53",
"EventId": "262b2f54-7ae7-4cf6-9c8a-eb4d0801****",
"LogicalResourceId": "dummy",
"PhysicalResourceId": "a",
"ResourceType": "ALIYUN::DEBUG::Dummy",
"StackId": "57d0946e-c7f4-4f4e-89ae-0d4301a2****",
"StackName": "test-describe-events",
"Status": "UPDATE_IN_PROGRESS",
"StatusReason": "state changed"
},
{
"CreationTime": "2019-08-01T05:57:53",
"EventId": "163c3965-1617-4787-ba08-1eed0e3a****",
"LogicalResourceId": "nested",
"PhysicalResourceId": "4ed7ab13-c912-4239-b064-8cea7caa****",
"ResourceType": "ALIYUN::ROS::Stack",
"StackId": "57d0946e-c7f4-4f4e-89ae-0d4301a2****",
"StackName": "test-describe-events",
"Status": "UPDATE_COMPLETE",
"StatusReason": "state changed"
},
{
"CreationTime": "2019-08-01T05:57:53",
"EventId": "71f7c25c-2ac7-4336-9934-85482111****",
"LogicalResourceId": "nested",
"PhysicalResourceId": "4ed7ab13-c912-4239-b064-8cea7caa****",
"ResourceType": "ALIYUN::ROS::Stack",
"StackId": "57d0946e-c7f4-4f4e-89ae-0d4301a2****",
"StackName": "test-describe-events",
"Status": "UPDATE_IN_PROGRESS",
"StatusReason": "state changed"
},
{
"CreationTime": "2019-08-01T05:57:53",
"EventId": "a5a0eb9e-7abe-44a1-a376-70955211****",
"LogicalResourceId": "WaitConditionHandle",
"ResourceType": "ALIYUN::ROS::WaitConditionHandle",
"StackId": "57d0946e-c7f4-4f4e-89ae-0d4301a2****",
"StackName": "test-describe-events",
"Status": "UPDATE_IN_PROGRESS",
"StatusReason": "state changed"
},
{
"CreationTime": "2019-08-01T05:57:53",
"EventId": "250f5003-f59d-46f9-8471-65d0c630****",
"LogicalResourceId": "test-describe-events",
"PhysicalResourceId": "57d0946e-c7f4-4f4e-89ae-0d4301a2****",
"ResourceType": "ALIYUN::ROS::Stack",
"StackId": "57d0946e-c7f4-4f4e-89ae-0d4301a2****",
"StackName": "test-describe-events",
"Status": "UPDATE_IN_PROGRESS",
"StatusReason": "Stack UPDATE started"
}
],
"PageNumber": 1,
"PageSize": 10,
"RequestId": "B288A0BE-D927-4888-B0F7-B35EF84B6E6F",
"TotalCount": 20
}
Error codes
For a list of error codes, visit the API Error Center.
HTTP status code |
Error code |
Error message |
Description |
---|---|---|---|
404 |
StackNotFound |
The Stack ({name}) could not be found. |
The error message returned because the specified stack does not exist. name indicates the name or ID of the stack. |