Mengkueri Grup tumpukan di suatu wilayah.
Deskripsi operasi
This example queries stack groups in the ACTIVE state in the China (Hangzhou) region.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
ros:ListStackGroups |
get |
*StackGroup
|
None | None |
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| RegionId |
string |
Yes |
ID wilayah Grup tumpukan. Panggil DescribeRegions untuk mengkueri wilayah yang tersedia. |
cn-hangzhou |
| Status |
string |
No |
Status Grup tumpukan. Jika tidak ditentukan, Grup tumpukan dalam semua status akan dikembalikan. Nilai valid:
|
ACTIVE |
| PageSize |
integer |
No |
Jumlah entri yang dikembalikan pada setiap halaman.
|
10 |
| PageNumber |
integer |
No |
Nomor halaman.
|
1 |
| ResourceGroupId |
string |
No |
ID kelompok sumber daya. Jika tidak ditentukan, Grup tumpukan di semua kelompok sumber daya akan dikembalikan. Catatan
Anda dapat mencari ID kelompok sumber daya di halaman Kelompok Sumber Daya pada Konsol Manajemen Sumber Daya. Lihat informasi dasar kelompok sumber daya. |
rg-acfmzawhxxcj**** |
| Tags |
array<object> |
No |
Tag Grup tumpukan. |
|
|
object |
No |
|||
| Key |
string |
Yes |
The tag key of the stack group. Catatan
Tags is optional. If you specify Tags, Tags.N.Key is required. |
usage |
| Value |
string |
No |
The tag value of the stack group. |
test |
Untuk parameter permintaan umum, lihat Parameter umum.
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
|||
| StackGroups |
array<object> |
The stack groups. |
|
|
array<object> |
|||
| StackGroupId |
string |
The ID of the stack group. |
fd0ddef9-9540-4b42-a464-94f77835**** |
| Status |
string |
The status of the stack group. Valid values:
|
ACTIVE |
| DriftDetectionTime |
string |
The time of the last successful drift detection on the stack group. |
2020-02-27T07:47:47 |
| Description |
string |
The description of the stack group. |
My Stack Group |
| StackGroupDriftStatus |
string |
The drift status of the stack group from the last successful drift detection. Valid values:
|
IN_SYNC |
| StackGroupName |
string |
The name of the stack group. |
MyStackGroup |
| Tags |
array<object> |
The tags of the stack group. |
|
|
object |
|||
| Key |
string |
The tag key of the stack group. |
usage1 |
| Value |
string |
The tag value of the stack group. |
test1 |
| ResourceGroupId |
string |
The ID of the resource group. |
rg-acfmzawhxxcj**** |
| PermissionModel |
string |
The permission model. Valid values:
Catatan
For details on permission models of stack groups, see Overview. |
SELF_MANAGED |
| AutoDeployment |
object |
The automatic deployment settings. |
|
| Enabled |
boolean |
Indicates whether to enable or disable automatic deployment. Valid values:
|
true |
| RetainStacksOnAccountRemoval |
boolean |
Indicates whether to retain the stacks in the member accounts when the member accounts are removed from the folder. Valid values:
Catatan
RetainStacksOnAccountRemoval is returned only when Enabled is true. |
true |
| CreateTime |
string |
The creation time of the stack group. |
2024-01-05T05:38:31 |
| UpdateTime |
string |
The last update time of the stack group. |
2024-02-15T16:40:25 |
| TotalCount |
integer |
The total number of stack groups. |
1 |
| RequestId |
string |
The request ID. |
14A07460-EBE7-47CA-9757-12CC4761D47A |
| PageSize |
integer |
The number of entries returned per page. |
10 |
| PageNumber |
integer |
The page number. |
1 |
Contoh
Respons sukses
JSONformat
{
"StackGroups": [
{
"StackGroupId": "fd0ddef9-9540-4b42-a464-94f77835****",
"Status": "ACTIVE",
"DriftDetectionTime": "2020-02-27T07:47:47",
"Description": "My Stack Group",
"StackGroupDriftStatus": "IN_SYNC",
"StackGroupName": "MyStackGroup",
"Tags": [
{
"Key": "usage1",
"Value": "test1"
}
],
"ResourceGroupId": "rg-acfmzawhxxcj****",
"PermissionModel": "SELF_MANAGED",
"AutoDeployment": {
"Enabled": true,
"RetainStacksOnAccountRemoval": true
},
"CreateTime": "2024-01-05T05:38:31",
"UpdateTime": "2024-02-15T16:40:25"
}
],
"TotalCount": 1,
"RequestId": "14A07460-EBE7-47CA-9757-12CC4761D47A",
"PageSize": 10,
"PageNumber": 1
}
Kode kesalahan
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.