Updates stack instances for one or more accounts in specified regions.
Operation description
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.
Try it now
Test
RAM authorization
Action | Access level | Resource type | Condition key | Dependent action |
ros:UpdateStackInstances | update | *StackInstance
| None | None |
Request parameters
Parameter | Type | Required | Description | Example |
RegionId | string | Yes | The region ID of the stack group. Call DescribeRegions to get the latest list of Alibaba Cloud regions. | cn-hangzhou |
StackGroupName | string | Yes | The name of the stack group. The name must be unique within a region. | MyStackGroup |
| AccountIds | array | 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. Note This parameter is required when you update stacks with self-managed permissions. | ["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. Note This parameter is required when you update stacks with self-managed permissions. | ["151266687691****","141261387191****"] | |
| RegionIds | array | Yes | The list of regions where you want to perform the operation. You can specify up to 20 regions. | ["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 | A client token that is used to ensure the idempotence of the request. The client token is generated by the client and must be globally unique. | 123e4567-e89b-12d3-a456-42665544**** |
OperationDescription | string | No | The description of the update operation. The description must be 1 to 256 characters in length. | Update stack instances in hangzhou and beijing |
OperationPreferences | object | No | The operation settings for updating the stacks. This includes the following parameters:
Separate multiple parameters with commas (,). Note
| {"FailureToleranceCount": 1,"MaxConcurrentCount": 2} |
TimeoutInMinutes | integer | No | The timeout period for the update operation.
| 10 |
| ParameterOverrides | array<object> | No | The list of parameters to overwrite. | |
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. Note
| 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. Note
| 1 |
| DeploymentTargets | object | No | The deployment targets for the stacks that are deployed in service-managed mode. Note This parameter is required when you update stacks in service-managed mode. | |
| 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`.
Note 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. Note 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. Note 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****"] |
For more information about common request parameters, see Common parameters.
Response elements
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**** |
Examples
Success response
JSON format
{
"RequestId": "14A07460-EBE7-47CA-9757-12CC4761D47A",
"OperationId": "6da106ca-1784-4a6f-a7e1-e723863d****"
}Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.