Queries the list of stack instances that are associated with a stack group in an Alibaba Cloud region.
Operation description
In this example, the list of stack instances that are associated with a stack group named MyStackGroup
is queried. The stack group is granted self-managed permissions and deployed in the China (Hangzhou) region.
Debugging
Authorization information
The following table shows the authorization information corresponding to the API. The authorization information can be used in the Action
policy element to grant a RAM user or RAM role the permissions to call this API operation. Description:
- Operation: the value that you can use in the Action element to specify the operation on a resource.
- Access level: the access level of each operation. The levels are read, write, and list.
- Resource type: the type of the resource on which you can authorize the RAM user or the RAM role to perform the operation. Take note of the following items:
- The required resource types are displayed in bold characters.
- If the permissions cannot be granted at the resource level,
All Resources
is used in the Resource type column of the operation.
- Condition Key: the condition key that is defined by the cloud service.
- Associated operation: other operations that the RAM user or the RAM role must have permissions to perform to complete the operation. To complete the operation, the RAM user or the RAM role must have the permissions to perform the associated operations.
Operation | Access level | Resource type | Condition key | Associated operation |
---|---|---|---|---|
ros:ListStackInstances | get |
|
| none |
Request parameters
Parameter | Type | Required | Description | Example |
---|---|---|---|---|
RegionId | string | Yes | The region ID of the stack group. You can call the DescribeRegions operation to query the most recent region list. | cn-hangzhou |
StackGroupName | string | Yes | The name of the stack group. The name must be unique within a region. | MyStackGroup |
StackInstanceAccountId | string | No | The ID of the destination account to which the stack belongs.
Note
For more information about the destination account, see Overview .
| 156552876021**** |
StackInstanceRegionId | string | No | The region ID of the stack. | cn-beijing |
PageSize | long | No | The number of entries to return on each page.
| 10 |
PageNumber | long | No | The number of the page to return.
| 1 |
For more information about common request parameters, see Common parameters.
Response parameters
Examples
Sample success responses
JSON
format
{
"TotalCount": 1,
"RequestId": "85DE34BD-7FF9-480F-8C21-556E9DA93ACD",
"PageSize": 1,
"PageNumber": 1,
"StackInstances": [
{
"Status": "CURRENT",
"StackGroupId": "fd0ddef9-9540-4b42-a464-94f77835****",
"StackId": "35ad60e3-6a92-42d8-8812-f0700d45****",
"DriftDetectionTime": "2020-02-27T07:47:47",
"StackDriftStatus": "IN_SYNC",
"StatusReason": "User initiated stop",
"StackGroupName": "MyStackGroup",
"AccountId": "156552876021****",
"RegionId": "cn-beijing",
"RdFolderId": "fd-4PvlVLOL8v"
}
]
}
Error codes
For a list of error codes, visit the Service error codes.
Change history
Change time | Summary of changes | Operation |
---|