Available in VPC
Create an Auto Scaling Group.
Syntax
The createAutoScalingGroup syntax is as follows:
./ncloud vautoscaling createAutoScalingGroup \
--vpcNo <vpc-no> \
--subnetNo <subnet-no> \
--accessControlGroupNoList <acg-no-list> \
--launchConfigurationNo <launch-configuration-no> \
--minSize <min-size> \
--maxSize <max-size> \
[--desiredCapacity <desired-capacity>] \
[--autoScalingGroupName <auto-scaling-group-name>] \
[--serverNamePrefix <server-name-prefix>] \
[--defaultCoolDown <default-cooldown>] \
[--healthCheckTypeCode <SVR|LOADB>] \
[--healthCheckGracePeriod <grace-period>] \
[--targetGroupNoList <target-group-no-list>] \
[--regionCode <KR|SGN|JPN>] \
[--output <json|xml>]
Options
This section describes the options available when running createAutoScalingGroup.
Required options
The following options are required for createAutoScalingGroup.
| Options | Type | Required | Description |
|---|---|---|---|
--vpcNo |
String | Required | VPC number
|
--subnetNo |
String | Required | Subnet number
|
--accessControlGroupNoList |
List | Required | ACG number list
|
--launchConfigurationNo |
String | Required | Launch configuration number
|
--minSize |
Integer | Required | Minimum number of servers in the Auto Scaling Group
|
--maxSize |
Integer | Required | Maximum number of servers in the Auto Scaling Group
|
--healthCheckGracePeriod |
Integer | Conditional | Health check grace period (second)
|
Optional options
These are the optional options for createAutoScalingGroup. Options that are not specified will use their default values.
| Options | Type | Required | Description |
|---|---|---|---|
--desiredCapacity |
Integer | Optional | Expected number of servers in the Auto Scaling Group
|
--autoScalingGroupName |
String | Optional | Auto Scaling Group name
|
--serverNamePrefix |
String | Optional | Server name prefix
|
--defaultCoolDown |
Integer | Optional | Default cooldown (second)
|
--healthCheckTypeCode |
String | Optional | Health check type code
|
--targetGroupNoList |
List | Optional | Target group number list
|
Common options
For information on options commonly used in the vautoscaling command, see Auto Scaling (VPC) options.
Examples
If the request to create an Auto Scaling Group is successful, the Auto Scaling Group's configuration information and creation status are returned.
Command
The command example is as follows:
./ncloud vautoscaling createAutoScalingGroup \
--vpcNo 12345678 \
--subnetNo 23456789 \
--accessControlGroupNoList 67890123 \
--launchConfigurationNo 18305791 \
--minSize 0 \
--maxSize 0 \
--desiredCapacity 0 \
--autoScalingGroupName asg-01 \
--serverNamePrefix test \
--defaultCoolDown 300 \
--healthCheckTypeCode SVR \
--regionCode KR \
--output json
Output
The output example is as follows:
{
"createAutoScalingGroupResponse": {
"totalRows": 1,
"autoScalingGroupList": [
{
"vpcNo": "12345678",
"subnetNo": "23456789",
"serverNamePrefix": "test",
"autoScalingGroupNo": "20461037",
"autoScalingGroupName": "asg-01",
"launchConfigurationNo": "18305791",
"minSize": 0,
"maxSize": 0,
"desiredCapacity": 0,
"defaultCoolDown": 300,
"healthCheckGracePeriod": 300,
"healthCheckType": {
"code": "SVR",
"codeName": "Server"
},
"createDate": "2026-07-07T10:22:20+0900",
"autoScalingGroupStatus": {
"code": "CREAT",
"codeName": "Created"
},
"targetGroupNoList": [],
"inAutoScalingGroupServerInstanceList": [],
"accessControlGroupNoList": [
"67890123"
],
"suspendedProcessList": []
}
],
"requestId": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"returnCode": "0",
"returnMessage": "success"
}
}