Queries the information about a stack instance that is associated with a stack group.
Operation description
In this example, the information about a stack instance associated with a stack group named MyStackGroup
is queried. The stack instance is deployed in the China (Beijing) region within the 151266687691****
Alibaba Cloud account. The stack group is granted self-managed permissions and deployed in the China (Hangzhou) region.
Debugging
Authorization information
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 | Yes | The ID of the destination account to which the stack belongs.
Note
For more information about the destination account, see Overview .
| 151266687691**** |
StackInstanceRegionId | string | Yes | The region ID of the stack. | cn-beijing |
OutputOption | string | No | Specifies whether to return the Outputs parameter. The Outputs parameter specifies the outputs of the stack. Valid values:
Note
The Outputs parameter requires a long period of time to calculate. If you do not require the outputs of the stack, we recommend that you set OutputOption to Disabled to improve the response speed of the API operation.
| Disabled |
For more information about common request parameters, see Common parameters.
Response parameters
Examples
Sample success responses
JSON
format
{
"RequestId": "B8A6B693-82C8-419D-8796-DE99EC33CFF9",
"StackInstance": {
"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",
"ParameterOverrides": [
{
"ParameterKey": "Amount",
"ParameterValue": "1"
}
],
"StackGroupName": "MyStackGroup",
"AccountId": "151266687691****",
"RegionId": "cn-beijing",
"RdFolderId": "fd-4PvlVLOL8v",
"Outputs": [
{
"test": "test",
"test2": 1
}
]
}
}
Error codes
For a list of error codes, visit the Service error codes.
Change history
Change time | Summary of changes | Operation |
---|---|---|
2024-02-21 | The request parameters of the API has changed. The response structure of the API has changed | View Change Details |