查询某个资源栈的资源列表。

调试

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

请求参数

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

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

RegionId String cn-hangzhou

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

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

资源栈ID。

返回数据

名称 类型 示例值 描述
RequestId String B288A0BE-D927-4888-B0F7-B35EF84B6E6

请求ID。

Resources

资源对象的列表。

CreateTime String 2019-08-01T06:01:23

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

LogicalResourceId String dummy

资源逻辑ID,模板定义的名称。

PhysicalResourceId String d04af923-e6b7-4272-aeaa-47ec9777cd78

资源的物理ID,实际资源ID。

ResourceType String ALIYUN::ROS::Stack

资源类型。

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

堆栈ID。

StackName String test-describe-resource

资源栈名称。资源栈名称可以包含数字、字母(大小写敏感)、连字符、下划线。必须以数字或字母开头,且长度不超过255个字符。

Status String UPDATE_COMPLETE

资源状态。可选值为:

  • CREATE_COMPLETE
  • CREATE_FAILED
  • CREATE_IN_PROGRESS
  • DELETE_FAILED
  • DELETE_IN_PROGRESS
  • ROLLBACK_COMPLETE
  • ROLLBACK_FAILED
  • ROLLBACK_IN_PROGRESS
StatusReason String state changed

资源状态的原因。

UpdateTime String 2019-08-01T06:01:29

更新时间,按照 ISO8601 标准表示,并需要使用 UTC 时间。格式为:YYYY-MM-DDThh:mm:ssZ。

示例

请求示例


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

正常返回示例

XML 格式

<ListStackResourcesResponse>
       <RequestId type="string">B288A0BE-D927-4888-B0F7-B35EF84B6E6F</RequestId>
       <Resources class="array">
              <Resource class="object">
                     <CreationTime type="string">2019-08-01T06:01:23</CreationTime>
                     <LogicalResourceId type="string">dummy</LogicalResourceId>
                     <PhysicalResourceId type="string">a</PhysicalResourceId>
                     <ResourceType type="string">ALIYUN::DEBUG::Dummy</ResourceType>
                     <StackId type="string">efdf5c10-96a5-4fd7-ab89-68e7baa2e0d5</StackId>
                     <StackName type="string">test-describe-resource</StackName>
                     <Status type="string">UPDATE_COMPLETE</Status>
                     <StatusReason type="string">state changed</StatusReason>
                     <UpdatedTime type="string">2019-08-01T06:01:29</UpdatedTime>
              </Resource>
              <Resource class="object">
                     <CreationTime type="string">2019-08-01T06:01:28</CreationTime>
                     <LogicalResourceId type="string">dummy3</LogicalResourceId>
                     <PhysicalResourceId type="string">a</PhysicalResourceId>
                     <ResourceType type="string">ALIYUN::DEBUG::Dummy</ResourceType>
                     <StackId type="string">efdf5c10-96a5-4fd7-ab89-68e7baa2e0d5</StackId>
                     <StackName type="string">test-describe-resource</StackName>
                     <Status type="string">CREATE_COMPLETE</Status>
                     <StatusReason type="string">state changed</StatusReason>
                     <UpdatedTime type="string">2019-08-01T06:01:29</UpdatedTime>
              </Resource>
              <Resource class="object">
                     <CreationTime type="string">2019-08-01T06:01:23</CreationTime>
                     <LogicalResourceId type="string">WaitConditionHandle</LogicalResourceId>
                     <PhysicalResourceId type="string"></PhysicalResourceId>
                     <ResourceType type="string">ALIYUN::ROS::WaitConditionHandle</ResourceType>
                     <StackId type="string">efdf5c10-96a5-4fd7-ab89-68e7baa2e0d5</StackId>
                     <StackName type="string">test-describe-resource</StackName>
                     <Status type="string">UPDATE_COMPLETE</Status>
                     <StatusReason type="string">state changed</StatusReason>
                     <UpdatedTime type="string">2019-08-01T06:01:29</UpdatedTime>
              </Resource>
              <Resource class="object">
                     <CreationTime type="string">2019-08-01T06:01:23</CreationTime>
                     <LogicalResourceId type="string">nested</LogicalResourceId>
                     <PhysicalResourceId type="string">d04af923-e6b7-4272-aeaa-47ec9777cd78</PhysicalResourceId>
                     <ResourceType type="string">ALIYUN::ROS::Stack</ResourceType>
                     <StackId type="string">efdf5c10-96a5-4fd7-ab89-68e7baa2e0d5</StackId>
                     <StackName type="string">test-describe-resource</StackName>
                     <Status type="string">UPDATE_COMPLETE</Status>
                     <StatusReason type="string">state changed</StatusReason>
                     <UpdatedTime type="string">2019-08-01T06:01:28</UpdatedTime>
              </Resource>
       </Resources>
</ListStackResourcesResponse>

JSON 格式

{
	"RequestId":"B288A0BE-D927-4888-B0F7-B35EF84B6E6F",
	"Resources":[
		{
			"CreationTime":"2019-08-01T06:01:23",
			"StatusReason":"state changed",
			"Status":"UPDATE_COMPLETE",
			"PhysicalResourceId":"a",
			"LogicalResourceId":"dummy",
			"ResourceType":"ALIYUN::DEBUG::Dummy",
			"StackId":"efdf5c10-96a5-4fd7-ab89-68e7baa2e0d5",
			"UpdatedTime":"2019-08-01T06:01:29",
			"StackName":"test-describe-resource"
		},
		{
			"CreationTime":"2019-08-01T06:01:28",
			"StatusReason":"state changed",
			"Status":"CREATE_COMPLETE",
			"PhysicalResourceId":"a",
			"LogicalResourceId":"dummy3",
			"ResourceType":"ALIYUN::DEBUG::Dummy",
			"StackId":"efdf5c10-96a5-4fd7-ab89-68e7baa2e0d5",
			"UpdatedTime":"2019-08-01T06:01:29",
			"StackName":"test-describe-resource"
		},
		{
			"CreationTime":"2019-08-01T06:01:23",
			"StatusReason":"state changed",
			"Status":"UPDATE_COMPLETE",
			"PhysicalResourceId":"",
			"LogicalResourceId":"WaitConditionHandle",
			"ResourceType":"ALIYUN::ROS::WaitConditionHandle",
			"StackId":"efdf5c10-96a5-4fd7-ab89-68e7baa2e0d5",
			"UpdatedTime":"2019-08-01T06:01:29",
			"StackName":"test-describe-resource"
		},
		{
			"CreationTime":"2019-08-01T06:01:23",
			"StatusReason":"state changed",
			"Status":"UPDATE_COMPLETE",
			"PhysicalResourceId":"d04af923-e6b7-4272-aeaa-47ec9777cd78",
			"LogicalResourceId":"nested",
			"ResourceType":"ALIYUN::ROS::Stack",
			"StackId":"efdf5c10-96a5-4fd7-ab89-68e7baa2e0d5",
			"UpdatedTime":"2019-08-01T06:01:28",
			"StackName":"test-describe-resource"
		}
	]
}

错误码

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

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

错误代码

错误信息

Http状态码

描述

StackNotFound

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

404

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