You can call CreateScalingGroupV2 operation to create a scaling group.

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer. You can use OpenAPI Explorer to search for API operations, call API operations, and dynamically generate SDK sample code.

Request parameters

Parameter Type Required Example Description
Action String Yes CreateScalingGroupV2

The operation that you want to perform. This parameter is required for API requests that you create by piecing together HTTP or HTTPS URLs. Valid values: CreateScalingGroupV2.

Description String Yes This is a sample scaling Group

Scaling group description information.

HostGroupId String Yes G-AB1234567****

The ID of the host group. You can call ListClusterHostGroup View Machine Group ID.

Name String Yes test

The name of the scaling group. Customize a password.

RegionId String Yes cn-hangzhou

The ID of the region to which the cluster belongs. You can call DescribeRegions Interface to view the latest list of Alibaba Cloud regions.

ResourceGroupId String No rg-acfmv6jutt6****

The ID of the resource group. You can call ListResourceGroups View the resource group ID.

Response parameters

Parameter Type Example Description
Data String SGB-8C44755C8432****

The ID of the newly created scaling group.

RequestId String 6C96FD2C-95A0-4C03-8A19-7D84A4BAAA1E

The ID of the request.

Examples

Sample requests

http(s)://[Endpoint]/? Action=CreateScalingGroupV2
&Description=This is a sample scaling Group
&HostGroupId=G-AB1234567****
&Name=test
&RegionId=cn-hangzhou
&<common request parameters>   

Sample success responses

XML format

<RequestId>6C96FD2C-95A0-4C03-8A19-7D84A4BAAA1E</RequestId>
<Data>SGB-8C44755C8432****</Data>    

JSON Syntax

{ 
"RequestId":"6C96FD2C-95A0-4C03-8A19-7D84A4BAAA1E", 
"Data":"SGB-8C44755C8432****"
 }