调用ListStackEvents接口查询资源栈及栈内资源的事件。

调试

您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。

请求参数

名称 类型 是否必选 示例值 描述
Action String ListStackEvents

系统规定参数。取值:ListStackEvents。

RegionId String cn-hangzhou

资源栈所属的地域ID。您可以调用DescribeRegions查看最新的阿里云地域列表。

StackId String 4a6c9851-3b0f-4f5f-b4ca-a14bf691****

资源栈ID。

Status.N RepeatList CREATE_IN_PROGRESS

资源状态。取值:

  • CREATE_COMPLETE
  • CREATE_FAILED
  • CREATE_IN_PROGRESS
  • DELETE_FAILED
  • DELETE_IN_PROGRESS
  • ROLLBACK_COMPLETE
  • ROLLBACK_FAILED
  • ROLLBACK_IN_PROGRESS
ResourceType.N RepeatList ALIYUN::ECS::Instance

资源类型列表。N的最大值为200。

LogicalResourceId.N RepeatList WebServer

资源逻辑ID,即模板中资源的名称。

PageNumber Long 1

事件列表的页码。起始值:1。默认值:1。

PageSize Long 10

分页查询时设置的每页行数。最大值:50。默认值:10。

返回数据

名称 类型 示例值 描述
Events Array

事件对象列表。

CreateTime String 2019-08-01T04:07:39

创建时间。按照ISO8601标准表示,需使用UTC时间,格式:YYYY-MM-DDThh:mm:ss。

EventId String 0086612d-77cf-4056-b0b5-ff8e94ad****

事件ID。

LogicalResourceId String WebServer

资源逻辑ID,即模板中资源的名称。

PhysicalResourceId String i-m5e3tfdbinchnexh****

实际资源的物理ID。

ResourceType String ALIYUN::ECS::Instance

资源类型。

StackId String 4a6c9851-3b0f-4f5f-b4ca-a14bf691****

资源栈ID。

StackName String StackName

资源栈名称。

Status String CREATE_COMPLETE

资源的状态。

StatusReason String state changed

状态原因。

PageNumber Integer 1

事件列表的页码。起始值:1。默认值:1。

PageSize Integer 10

分页查询时设置的每页行数。最大值:50。默认值:10。

RequestId String B288A0BE-D927-4888-B0F7-B35EF84B6E6

请求ID。

TotalCount Integer 20

查询到的事件总数。

示例

请求示例


http(s)://ros.aliyuncs.com/?Action=ListStackEvents
&RegionId=cn-hangzhou
&StackId=4a6c9851-3b0f-4f5f-b4ca-a14bf691****
&<公共请求参数>

正常返回示例

XML 格式

<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 格式

{
	"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-0d4301a2****",
			"LogicalResourceId":"test-describe-events",
			"ResourceType":"ALIYUN::ROS::Stack",
			"StackId":"57d0946e-c7f4-4f4e-89ae-0d4301a2****",
			"EventId":"0086612d-77cf-4056-b0b5-ff8e94ad****",
			"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-0d4301a2****",
			"EventId":"2b900d01-959b-49a8-8cfe-f7de87aa****",
			"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-0d4301a2****",
			"EventId":"30f721d4-8124-4fd4-8afd-7b21471f****",
			"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-0d4301a2****",
			"EventId":"b5ecc0ac-f855-4503-945c-82d398a2****",
			"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-0d4301a2****",
			"EventId":"a01e5730-7244-414e-b9ff-f97e3885****",
			"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-0d4301a2****",
			"EventId":"262b2f54-7ae7-4cf6-9c8a-eb4d0801****",
			"StackName":"test-describe-events"
		},
		{
			"CreationTime":"2019-08-01T05:57:53",
			"StatusReason":"state changed",
			"Status":"UPDATE_COMPLETE",
			"PhysicalResourceId":"4ed7ab13-c912-4239-b064-8cea7caa****",
			"LogicalResourceId":"nested",
			"ResourceType":"ALIYUN::ROS::Stack",
			"StackId":"57d0946e-c7f4-4f4e-89ae-0d4301a2****",
			"EventId":"163c3965-1617-4787-ba08-1eed0e3a****",
			"StackName":"test-describe-events"
		},
		{
			"CreationTime":"2019-08-01T05:57:53",
			"StatusReason":"state changed",
			"Status":"UPDATE_IN_PROGRESS",
			"PhysicalResourceId":"4ed7ab13-c912-4239-b064-8cea7caa****",
			"LogicalResourceId":"nested",
			"ResourceType":"ALIYUN::ROS::Stack",
			"StackId":"57d0946e-c7f4-4f4e-89ae-0d4301a2****",
			"EventId":"71f7c25c-2ac7-4336-9934-85482111****",
			"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-0d4301a2****",
			"EventId":"a5a0eb9e-7abe-44a1-a376-70955211****",
			"StackName":"test-describe-events"
		},
		{
			"CreationTime":"2019-08-01T05:57:53",
			"StatusReason":"Stack UPDATE started",
			"Status":"UPDATE_IN_PROGRESS",
			"PhysicalResourceId":"57d0946e-c7f4-4f4e-89ae-0d4301a2****",
			"LogicalResourceId":"test-describe-events",
			"ResourceType":"ALIYUN::ROS::Stack",
			"StackId":"57d0946e-c7f4-4f4e-89ae-0d4301a2****",
			"EventId":"250f5003-f59d-46f9-8471-65d0c630****",
			"StackName":"test-describe-events"
		}
	]
}

错误码

访问错误中心查看更多错误码。

访问公共错误码查看更多错误码。

HttpCode

错误码

错误信息

描述

404

StackNotFound

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

资源栈不存在。name为资源栈名称或ID。