createAutoScalingGroup
- Print
- PDF
createAutoScalingGroup
- Print
- PDF
Article summary
Did you find this summary helpful?
Thank you for your feedback
Overview
Creates a new Auto Scaling group by specifying a name and other required properties. Once a request to create a new Auto Scaling group is completed, the Auto Scaling group is ready to be used by other API calls. However, this does not mean that server instances in the Auto Scaling group are completely created and used for your services.
Request
Request parameters
Parameter | Required | Type | Limitations | Description |
---|---|---|---|---|
autoScalingGroupName | N | String | Min: 1 Max: 255 | It identifies Auto Scaling groups. It cannot be changed once specified. |
launchConfigurationName | Y | String | Min: 1 Max: 255 | Launch configuration name It contains server related information used when a new server instance in the Auto Scaling group is created. |
desiredCapacity | N | Integer | Min: 0 Max: 30 | It is desired capacity, which is the number of server instances that belong to the Auto Scaling group. It must be greater than or equal to the current minSize and less than or equal to the current maxSize of the Auto Scaling group. |
minSize | Y | Integer | Min: 0 Max: 30 | Minimum size (It is at least 0 and less than or equal to the maxSize.) |
maxSize | Y | Integer | Min: 0 Max: 30 | Maximum size |
defaultCooldown | N | Integer | Min: 0 Max: 2147483647 | Default cooldown time Default: 300 |
loadBalancerNameList.N | N | List | Max: 10 | List of load balancer names to add when a server in this Auto Scaling group is created and starts to run for your services. |
healthCheckGracePeriod | Conditional | Integer | Min: 0 Max: 2147483647 | Health check grace period. Auto Scaling waits until the health check grace period ends before checking the health status of the server instance. It is required if healthCheckTypeCode is LOADB (Load balancer) . |
healthCheckTypeCode | N | String | Min: 1 Max: 5 | Health check type code. SVR (Server) , LOADB (Load balancer) |
zoneNoList | Y | String | Duplicates not allowed | ZONE number list List of zones in which server instances in this auto scaling group will be located. |
Response
Response body
Examples
Request example
{AUTOSCALILNG_API_URL}/createAutoScalingGroup
?autoScalingGroupName=asg-0224
&desiredCapacity=0
&launchConfigurationName=lc-1
&maxSize=0&minSize=0
&zoneNoList.1=2
&zoneNoList.2=3
Response example
<createAutoScalingGroupResponse>
<requestId>015a4c61-c887-43f7-89ba-997ccdd75732</requestId>
<returnCode>0</returnCode>
<returnMessage>success</returnMessage>
<totalRows>1</totalRows>
<autoScalingGroupList>
<autoScalingGroup>
<autoScalingGroupName>asg-0224</autoScalingGroupName>
<autoScalingGroupNo>***517</autoScalingGroupNo>
<launchConfigurationName>lc-1</launchConfigurationName>
<launchConfigurationNo>***013</launchConfigurationNo>
<desiredCapacity>0</desiredCapacity>
<minSize>0</minSize>
<maxSize>0</maxSize>
<loadBalancerInstanceSummeryList />
<healthCheckGracePeriod>0</healthCheckGracePeriod>
<healthCheckType>
<code>SVR</code>
<codeName>Server</codeName>
</healthCheckType>
<createDate>2014-02-24T15:11:11+0900</createDate>
<inAutoScalingGroupServerInstanceList />
<suspendedProcessList />
<zoneList>
<zone>
<zoneNo>2</zoneNo>
<zoneName>zone2</zoneName>
<zoneDescription>nang zone</zoneDescription>
</zone>
<zone>
<zoneNo>3</zoneNo>
<zoneName>zone3</zoneName>
<zoneDescription>nang zone2</zoneDescription>
</zone>
</zoneList>
</autoScalingGroup>
</autoScalingGroupList>
</createAutoScalingGroupResponse>
Error codes
Errors that may occur while using this action are listed below. For information on common errors, refer to NAVER Cloud Platform API.
HTTP response code | Return code | Return message |
---|---|---|
400 | 50150 | This is returned when you cannot delete a launch configuration, scaling policy, or auto scaling group because it is being used. |
400 | 50160 | You cannot request actions while there are scaling activities in progress for that group. |
Was this article helpful?