You can call CreateScalingGroupV2 operation to create a scaling group.
Debugging
Request parameter
Parameter | Type | Required | Example | Description |
---|---|---|---|---|
Action | String | Yes | CreateScalingGroupV2 |
The operation that you want to perform. Set the value to CreateScalingGroupV2. |
Description | String | Yes | This is an example scaling group |
The description of the scaling group. . |
HostGroupId | String | Yes | G-AB1234567**** |
The ID of the host group. You can call the ListClusterHostGroup to view the machine group ID. |
Name | String | Yes | test |
The name of the scaling group. You can customize the settings. |
RegionId | String | Yes | cn-hangzhou |
The ID of the region to which the cluster belongs. You can call the DescribeRegions operation to view the latest Alibaba Cloud region list. |
ResourceGroupId | String | No | rg-acfmv6jutt6**** |
The ID of the resource group. You can call the ListResourceGroups to 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****"
}