Memperbarui instans stack untuk satu atau beberapa akun di wilayah tertentu.
Deskripsi operasi
This topic provides an example of how to update stacks for the stack group MyStackGroup, which is in the China (Hangzhou) region and uses self-managed permissions. The stacks are updated for the Alibaba Cloud accounts 151266687691**** and 141261387191**** in the China (Hangzhou) and China (Beijing) regions.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
ros:UpdateStackInstances |
update |
*StackInstance
|
None | None |
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| RegionId |
string |
Yes |
ID wilayah Grup tumpukan. Panggil DescribeRegions untuk mendapatkan daftar terbaru wilayah Alibaba Cloud. |
cn-hangzhou |
| StackGroupName |
string |
Yes |
Nama Grup tumpukan. Nama harus unik dalam suatu wilayah. |
MyStackGroup |
| AccountIds |
array |
No |
ID akun tujuan tempat Anda ingin menerapkan stack dengan izin yang dikelola sendiri. Anda dapat menentukan hingga 30 ID akun. Catatan
Parameter ini diperlukan saat Anda memperbarui stack dengan izin yang dikelola sendiri. |
["151266687691****","141261387191****"] |
|
string |
No |
The IDs of the destination accounts for which you want to deploy stacks with self-managed permissions. You can specify up to 30 account IDs. Catatan
This parameter is required when you update stacks with self-managed permissions. |
["151266687691****","141261387191****"] |
|
| RegionIds |
array |
Yes |
Daftar wilayah tempat Anda ingin melakukan operasi. Anda dapat menentukan hingga 20 wilayah. |
["cn-hangzhou", "cn-beijing"] |
|
string |
No |
The list of regions where you want to perform the operation. You can specify up to 20 regions. |
["cn-hangzhou","cn-beijing"] |
|
| ClientToken |
string |
No |
Token klien yang digunakan untuk memastikan idempotensi permintaan. Token klien dihasilkan oleh klien dan harus unik secara global. |
123e4567-e89b-12d3-a456-42665544**** |
| OperationDescription |
string |
No |
Deskripsi operasi pembaruan. Deskripsi harus memiliki panjang 1 hingga 256 karakter. |
Update stack instances in hangzhou and beijing |
| OperationPreferences |
object |
No |
Pengaturan operasi untuk memperbarui stack. Ini mencakup parameter berikut:
Pisahkan beberapa parameter dengan koma (,). Catatan
|
{"FailureToleranceCount": 1,"MaxConcurrentCount": 2} |
| TimeoutInMinutes |
integer |
No |
Periode pengatur waktu habis untuk operasi pembaruan.
|
10 |
| ParameterOverrides |
array<object> |
No |
Daftar parameter yang akan ditimpa. |
|
|
object |
No |
|||
| ParameterKey |
string |
Yes |
The name of the parameter to overwrite. If you do not specify this parameter, ROS uses the parameter name that you specified when you created the stack group. The value of N can be up to 200. Catatan
|
Amount |
| ParameterValue |
string |
Yes |
The value of the parameter to overwrite. If you do not specify the name and value of a parameter, ROS uses the parameter that you specified when you created the stack group. The value of N can be up to 200. Catatan
|
1 |
| DeploymentTargets |
object |
No |
Target penerapan untuk stack yang diterapkan dalam mode dikelola layanan. Catatan
Parameter ini diperlukan saat Anda memperbarui stack dalam mode dikelola layanan. |
|
| RdFolderIds |
array |
No |
The IDs of the folders in the resource directory. |
|
|
string |
No |
The IDs of the folders in the resource directory. You can specify up to 20 folder IDs. You must specify `RdFolderIds` or `AccountIds`.
Catatan
You can view the folder IDs on the Overview page in the Resource Management console. For more information, see View the basic information of a folder. |
["fd-4PvlVLOL8v"] |
|
| AccountIds |
array |
No |
The IDs of the member accounts in the resource directory. You can specify up to 50 member account IDs. Catatan
You can view the member account IDs on the Overview page in the Resource Management console. For more information, see View the details of a member. |
|
|
string |
No |
The IDs of the member accounts in the resource directory. You can specify up to 50 member account IDs. Catatan
You can view the member account IDs on the Overview page in the Resource Management console. For more information, see View the details of a member. |
["151266687691****","141261387191****"] |
Untuk informasi selengkapnya tentang parameter permintaan umum, lihat Parameter umum.
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
The request ID. |
14A07460-EBE7-47CA-9757-12CC4761D47A |
| OperationId |
string |
The operation ID. |
6da106ca-1784-4a6f-a7e1-e723863d**** |
Contoh
Respons sukses
JSONformat
{
"RequestId": "14A07460-EBE7-47CA-9757-12CC4761D47A",
"OperationId": "6da106ca-1784-4a6f-a7e1-e723863d****"
}
Kode kesalahan
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.