Mengkueri daftar Instans tumpukan yang terkait dengan Grup tumpukan di wilayah Alibaba Cloud.
Deskripsi operasi
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.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
ros:ListStackInstances |
get |
*StackInstance
|
None | None |
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| RegionId |
string |
Yes |
ID wilayah Grup tumpukan. Anda dapat memanggil operasi DescribeRegions untuk mengkueri daftar wilayah terbaru. |
cn-hangzhou |
| StackGroupName |
string |
Yes |
Nama Grup tumpukan. Nama harus unik dalam satu wilayah. |
MyStackGroup |
| StackInstanceAccountId |
string |
No |
ID akun tujuan tempat stack berada.
Catatan
Untuk informasi lebih lanjut tentang akun tujuan, lihat Ikhtisar. |
156552876021**** |
| StackInstanceRegionId |
string |
No |
ID wilayah stack. |
cn-beijing |
| PageSize |
integer |
No |
Jumlah entri yang dikembalikan per halaman.
|
10 |
| PageNumber |
integer |
No |
Nomor halaman yang akan dikembalikan.
|
1 |
Untuk informasi lebih lanjut tentang parameter permintaan umum, lihat Parameter umum.
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
|||
| TotalCount |
integer |
The total number of stacks. |
1 |
| RequestId |
string |
The request ID. |
85DE34BD-7FF9-480F-8C21-556E9DA93ACD |
| PageSize |
integer |
The number of entries returned per page. |
1 |
| PageNumber |
integer |
The page number of the returned page. |
1 |
| StackInstances |
array<object> |
The stacks. |
|
|
object |
|||
| Status |
string |
The state of the stack. Valid values:
|
CURRENT |
| StackGroupId |
string |
The ID of the stack group. |
fd0ddef9-9540-4b42-a464-94f77835**** |
| StackId |
string |
The stack ID. Catatan
This parameter is returned only if the stack is in the CURRENT state. |
35ad60e3-6a92-42d8-8812-f0700d45**** |
| DriftDetectionTime |
string |
The time when the last successful drift detection was performed on the stack. Catatan
This parameter is returned only if drift detection is performed on the stack group. |
2020-02-27T07:47:47 |
| StackDriftStatus |
string |
The state of the stack when the last successful drift detection was performed on the stack group. Valid values:
Catatan
This parameter is returned only if drift detection is performed on the stack group. |
IN_SYNC |
| StatusReason |
string |
The reason why the stack instance is in the OUTDATED state. Catatan
This parameter is returned only if the stack instance is in the OUTDATED state. |
User initiated stop |
| StackGroupName |
string |
The name of the stack group. |
MyStackGroup |
| AccountId |
string |
The ID of the destination account to which the stack belongs. |
156552876021**** |
| RegionId |
string |
The region ID of the stack. |
cn-beijing |
| RdFolderId |
string |
The ID of the folder in the resource directory. Catatan
This parameter is returned only if the stack group is granted service-managed permissions. |
fd-4PvlVLOL8v |
Contoh
Respons sukses
JSONformat
{
"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"
}
]
}
Kode kesalahan
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.