Import stacks from multiple different accounts into a stack group.
Debugging
Authorization information
The following table shows the authorization information corresponding to the API. The authorization information can be used in the Action policy element to grant a RAM user or RAM role the permissions to call this API operation. Description:
- Operation: the value that you can use in the Action element to specify the operation on a resource.
- Access level: the access level of each operation. The levels are read, write, and list.
- Resource type: the type of the resource on which you can authorize the RAM user or the RAM role to perform the operation. Take note of the following items:
- For mandatory resource types, indicate with a prefix of * .
- If the permissions cannot be granted at the resource level,
All Resourcesis used in the Resource type column of the operation.
- Condition Key: the condition key that is defined by the cloud service.
- Associated operation: other operations that the RAM user or the RAM role must have permissions to perform to complete the operation. To complete the operation, the RAM user or the RAM role must have the permissions to perform the associated operations.
| Operation | Access level | Resource type | Condition key | Associated operation |
|---|---|---|---|---|
| ros:ImportStacksToStackGroup | create | *StackGroup acs:ros:{#regionId}:{#accountId}:stackgroup/{#StackGroupName} |
| none |
Request parameters
| Parameter | Type | Required | Description | Example |
|---|---|---|---|---|
| RegionId | string | Yes | The region ID of the stack group. You can call DescribeRegions to view 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 single region. It cannot exceed 255 characters and must start with a letter or number, and can include letters, numbers, hyphens (-), and underscores (_). | MyStackGroup |
| StackArns | array | Yes | A list of ARNs for the stacks to be imported into the stack group, in the format | |
| string | Yes | The ARN of the stack to be imported into the stack group, in the format acs:ros:${RegionId}:${AccountId}:stack/${StackId}. A maximum of 10 stacks can be added. | acs:ros:cn-hangzhou:175458000000****:stack/4a65f506-c3cc-43b6-af06-3f000000**** | |
| ResourceDirectoryFolderIds | array | Yes | A list of resource directory folder IDs for the stacks to be imported. A maximum of 10 folders can be added. | |
| string | Yes | The resource directory folder ID for the stacks to be imported. A maximum of 10 folders can be added. | ["fd-1111VL****"] | |
| ClientToken | string | No | Ensures the idempotence of the request. This value is generated by the client and must be globally unique. It cannot exceed 64 characters and can include letters, numbers, hyphens (-), and underscores (_). For more information, see How to Ensure Idempotence. | 123e4567-e89b-12d3-a456-42665544**** |
| OperationDescription | string | No | Description of the operation. | Import ops stacks to stack group |
| OperationPreferences | object | No | Operation settings for importing stacks into the stack group. Includes the following parameters:
Multiple parameters are separated by commas (,). Note
| {"FailureToleranceCount": 1,"MaxConcurrentCount": 2} |
Response parameters
Examples
Sample success responses
JSONformat
{
"RequestId": "14A07460-EBE7-47CA-9757-12CC4761D47A",
"OperationId": "6da106ca-1784-4a6f-a7e1-e723863d****"
}Error codes
For a list of error codes, visit the Service error codes.
