You can call this operation to query stacks and their resource events.

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer. OpenAPI Explorer dynamically generates the sample code of the operation for different SDKs.

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-a14bf691f2ff

The ID of the stack.

Status.N RepeatList No CREATE_IN_PROGRESS

The status of resource N. Valid values:

  • CREATE_COMPLETE
  • CREATE_FAILED
  • CREATE_IN_PROGRESS
  • DELETE_FAILED
  • DELETE_IN_PROGRESS
  • ROLLBACK_COMPLETE
  • ROLLBACK_FAILED
  • ROLLBACK_IN_PROGRESS
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 resource N 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: 100. Default value: 10.

Response parameters

Parameter Type Example Description
Events

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-ff8e94ad9254

The ID of the event.

LogicalResourceId String WebServer

The logical resource ID defined in the template.

PhysicalResourceId String i-xxxx

The physical ID of the resource.

ResourceType String ALIYUN::ECS::Instance

The type of the resource.

StackId String 4a6c9851-3b0f-4f5f-b4ca-a14bf691f2ff

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 status.

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: 100. 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-a14bf691f2ff
&<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-ff8e94ad9254</EventId>
                     <LogicalResourceId type="string">test-describe-events</LogicalResourceId>
                     <PhysicalResourceId type="string">57d0946e-c7f4-4f4e-89ae-0d4301a28f1c</PhysicalResourceId>
                     <ResourceType type="string">ALIYUN::ROS::Stack</ResourceType>
                     <StackId type="string">57d0946e-c7f4-4f4e-89ae-0d4301a28f1c</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-f7de87aa270c</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-0d4301a28f1c</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-7b21471f1160</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-0d4301a28f1c</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-82d398a2f23a</EventId>
                     <LogicalResourceId type="string">WaitConditionHandle</LogicalResourceId>
                     <ResourceType type="string">ALIYUN::ROS::WaitConditionHandle</ResourceType>
                     <StackId type="string">57d0946e-c7f4-4f4e-89ae-0d4301a28f1c</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-f97e3885975b</EventId>
                     <LogicalResourceId type="string">dummy3</LogicalResourceId>
                     <ResourceType type="string">ALIYUN::DEBUG::Dummy</ResourceType>
                     <StackId type="string">57d0946e-c7f4-4f4e-89ae-0d4301a28f1c</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-eb4d08011ac8</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-0d4301a28f1c</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-1eed0e3a3cb6</EventId>
                     <LogicalResourceId type="string">nested</LogicalResourceId>
                     <PhysicalResourceId type="string">4ed7ab13-c912-4239-b064-8cea7caa104e</PhysicalResourceId>
                     <ResourceType type="string">ALIYUN::ROS::Stack</ResourceType>
                     <StackId type="string">57d0946e-c7f4-4f4e-89ae-0d4301a28f1c</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-8548211126c1</EventId>
                     <LogicalResourceId type="string">nested</LogicalResourceId>
                     <PhysicalResourceId type="string">4ed7ab13-c912-4239-b064-8cea7caa104e</PhysicalResourceId>
                     <ResourceType type="string">ALIYUN::ROS::Stack</ResourceType>
                     <StackId type="string">57d0946e-c7f4-4f4e-89ae-0d4301a28f1c</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-70955211d226</EventId>
                     <LogicalResourceId type="string">WaitConditionHandle</LogicalResourceId>
                     <ResourceType type="string">ALIYUN::ROS::WaitConditionHandle</ResourceType>
                     <StackId type="string">57d0946e-c7f4-4f4e-89ae-0d4301a28f1c</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-65d0c630b625</EventId>
                     <LogicalResourceId type="string">test-describe-events</LogicalResourceId>
                     <PhysicalResourceId type="string">57d0946e-c7f4-4f4e-89ae-0d4301a28f1c</PhysicalResourceId>
                     <ResourceType type="string">ALIYUN::ROS::Stack</ResourceType>
                     <StackId type="string">57d0946e-c7f4-4f4e-89ae-0d4301a28f1c</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

{
	"PageNumber":1,
	"TotalCount":20,
	"PageSize":10,
	"RequestId":"B288A0BE-D927-4888-B0F7-B35EF84B6E6F",
	"Events":[
		{
			"CreationTime":"2019-08-01T05:57:56",
			"StatusReason":"Stack successfully updated",
			"Status":"UPDATE_COMPLETE",
			"PhysicalResourceId":"57d0946e-c7f4-4f4e-89ae-0d4301a28f1c",
			"LogicalResourceId":"test-describe-events",
			"ResourceType":"ALIYUN::ROS::Stack",
			"StackId":"57d0946e-c7f4-4f4e-89ae-0d4301a28f1c",
			"EventId":"0086612d-77cf-4056-b0b5-ff8e94ad9254",
			"StackName":"test-describe-events"
		},
		{
			"CreationTime":"2019-08-01T05:57:55",
			"StatusReason":"state changed",
			"Status":"UPDATE_COMPLETE",
			"PhysicalResourceId":"a",
			"LogicalResourceId":"dummy",
			"ResourceType":"ALIYUN::DEBUG::Dummy",
			"StackId":"57d0946e-c7f4-4f4e-89ae-0d4301a28f1c",
			"EventId":"2b900d01-959b-49a8-8cfe-f7de87aa270c",
			"StackName":"test-describe-events"
		},
		{
			"CreationTime":"2019-08-01T05:57:55",
			"StatusReason":"state changed",
			"Status":"CREATE_COMPLETE",
			"PhysicalResourceId":"a",
			"LogicalResourceId":"dummy3",
			"ResourceType":"ALIYUN::DEBUG::Dummy",
			"StackId":"57d0946e-c7f4-4f4e-89ae-0d4301a28f1c",
			"EventId":"30f721d4-8124-4fd4-8afd-7b21471f1160",
			"StackName":"test-describe-events"
		},
		{
			"CreationTime":"2019-08-01T05:57:54",
			"StatusReason":"state changed",
			"Status":"UPDATE_COMPLETE",
			"LogicalResourceId":"WaitConditionHandle",
			"ResourceType":"ALIYUN::ROS::WaitConditionHandle",
			"StackId":"57d0946e-c7f4-4f4e-89ae-0d4301a28f1c",
			"EventId":"b5ecc0ac-f855-4503-945c-82d398a2f23a",
			"StackName":"test-describe-events"
		},
		{
			"CreationTime":"2019-08-01T05:57:53",
			"StatusReason":"state changed",
			"Status":"CREATE_IN_PROGRESS",
			"LogicalResourceId":"dummy3",
			"ResourceType":"ALIYUN::DEBUG::Dummy",
			"StackId":"57d0946e-c7f4-4f4e-89ae-0d4301a28f1c",
			"EventId":"a01e5730-7244-414e-b9ff-f97e3885975b",
			"StackName":"test-describe-events"
		},
		{
			"CreationTime":"2019-08-01T05:57:53",
			"StatusReason":"state changed",
			"Status":"UPDATE_IN_PROGRESS",
			"PhysicalResourceId":"a",
			"LogicalResourceId":"dummy",
			"ResourceType":"ALIYUN::DEBUG::Dummy",
			"StackId":"57d0946e-c7f4-4f4e-89ae-0d4301a28f1c",
			"EventId":"262b2f54-7ae7-4cf6-9c8a-eb4d08011ac8",
			"StackName":"test-describe-events"
		},
		{
			"CreationTime":"2019-08-01T05:57:53",
			"StatusReason":"state changed",
			"Status":"UPDATE_COMPLETE",
			"PhysicalResourceId":"4ed7ab13-c912-4239-b064-8cea7caa104e",
			"LogicalResourceId":"nested",
			"ResourceType":"ALIYUN::ROS::Stack",
			"StackId":"57d0946e-c7f4-4f4e-89ae-0d4301a28f1c",
			"EventId":"163c3965-1617-4787-ba08-1eed0e3a3cb6",
			"StackName":"test-describe-events"
		},
		{
			"CreationTime":"2019-08-01T05:57:53",
			"StatusReason":"state changed",
			"Status":"UPDATE_IN_PROGRESS",
			"PhysicalResourceId":"4ed7ab13-c912-4239-b064-8cea7caa104e",
			"LogicalResourceId":"nested",
			"ResourceType":"ALIYUN::ROS::Stack",
			"StackId":"57d0946e-c7f4-4f4e-89ae-0d4301a28f1c",
			"EventId":"71f7c25c-2ac7-4336-9934-8548211126c1",
			"StackName":"test-describe-events"
		},
		{
			"CreationTime":"2019-08-01T05:57:53",
			"StatusReason":"state changed",
			"Status":"UPDATE_IN_PROGRESS",
			"LogicalResourceId":"WaitConditionHandle",
			"ResourceType":"ALIYUN::ROS::WaitConditionHandle",
			"StackId":"57d0946e-c7f4-4f4e-89ae-0d4301a28f1c",
			"EventId":"a5a0eb9e-7abe-44a1-a376-70955211d226",
			"StackName":"test-describe-events"
		},
		{
			"CreationTime":"2019-08-01T05:57:53",
			"StatusReason":"Stack UPDATE started",
			"Status":"UPDATE_IN_PROGRESS",
			"PhysicalResourceId":"57d0946e-c7f4-4f4e-89ae-0d4301a28f1c",
			"LogicalResourceId":"test-describe-events",
			"ResourceType":"ALIYUN::ROS::Stack",
			"StackId":"57d0946e-c7f4-4f4e-89ae-0d4301a28f1c",
			"EventId":"250f5003-f59d-46f9-8471-65d0c630b625",
			"StackName":"test-describe-events"
		}
	]
}

Error codes

For a list of error codes, visit the API Error Center.

For more information about errors common to all operations, see Common errors.

Error code

Error message

HTTP status code

Description

StackNotFound

The Stack ({name}) could not be found.

404

The error message returned because the specified stack does not exist. name indicates the name or ID of the stack.