All Products
Search
Document Center

Resource Orchestration Service:ImportStacksToStackGroup

Last Updated:May 14, 2025
This topic is generated by a machine translation engine without any human intervention. ALIBABA CLOUD DOES NOT GUARANTEE THE ACCURACY OF MACHINE TRANSLATED CONTENT. To request a human-translated version of this topic or provide feedback on this translation, please include it in the feedback form.

Import stacks from multiple different accounts into a stack group.

Debugging

You can run this interface directly in OpenAPI Explorer, saving you the trouble of calculating signatures. After running successfully, OpenAPI Explorer can automatically generate SDK code samples.

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 Resources is 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.
OperationAccess levelResource typeCondition keyAssociated operation
ros:ImportStacksToStackGroupcreate
*StackGroup
acs:ros:{#regionId}:{#accountId}:stackgroup/{#StackGroupName}
    none
none

Request parameters

ParameterTypeRequiredDescriptionExample
RegionIdstringYes

The region ID of the stack group. You can call DescribeRegions to view the latest list of Alibaba Cloud regions.

cn-hangzhou
StackGroupNamestringYes

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
StackArnsarrayYes

A list of ARNs for the stacks to be imported into the stack group, in the format acs:ros:${RegionId}:${AccountId}:stack/${StackId}. A maximum of 10 stacks can be added.

stringYes

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****
ResourceDirectoryFolderIdsarrayYes

A list of resource directory folder IDs for the stacks to be imported. A maximum of 10 folders can be added.

stringYes

The resource directory folder ID for the stacks to be imported. A maximum of 10 folders can be added.

["fd-1111VL****"]
ClientTokenstringNo

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****
OperationDescriptionstringNo

Description of the operation.

Import ops stacks to stack group
OperationPreferencesobjectNo

Operation settings for importing stacks into the stack group.

Includes the following parameters:

  • {"FailureToleranceCount": N}

    Failure tolerance count. The number of accounts in which the stack can fail in each region. If this number is exceeded, the operation in that region will stop. If the operation in one region stops, it will not continue in other regions.

    The range of N: 0~20.

    If FailureToleranceCount is not specified, the default value is 0.

  • {"FailureTolerancePercentage": N}

    Failure tolerance percentage. The percentage of total accounts in which the stack can fail in each region. If this percentage is exceeded, the operation in that region will stop.

    The range of N: 0~100. If the percentage is not an integer, ROS will round down.

    If FailureTolerancePercentage is not specified, the default value is 0.

  • {"MaxConcurrentCount": N}

    Maximum concurrent account count. The number of accounts in which the stack can be deployed simultaneously in each region.

    The range of N: 1~20.

    If MaxConcurrentCount is not specified, the default value is 1.

  • {"MaxConcurrentPercentage": N} Maximum concurrent account percentage.

    The percentage of total accounts in which the stack can be deployed simultaneously in each region.

    The range of N: 1~100. If the percentage is not an integer, ROS will round down.

    If MaxConcurrentPercentage is not specified, the default value is 1.

  • {"RegionConcurrencyType": N} Region-level concurrency type for deploying stack instances, values:

    • SEQUENTIAL (default): Deploy sequentially in each specified region, only one region at a time.

    • PARALLEL: Deploy in parallel across all specified regions.

Multiple parameters are separated by commas (,).

Note
  • Do not specify both MaxConcurrentCount and MaxConcurrentPercentage.
  • Do not specify both FailureToleranceCount and FailureTolerancePercentage.
  • {"FailureToleranceCount": 1,"MaxConcurrentCount": 2}

    Response parameters

    ParameterTypeDescriptionExample
    object
    RequestIdstring

    Request ID.

    14A07460-EBE7-47CA-9757-12CC4761D47A
    OperationIdstring

    Operation ID.

    6da106ca-1784-4a6f-a7e1-e723863d****

    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.