setDesiredCapacity
- Print
- PDF
setDesiredCapacity
- Print
- PDF
Article summary
Did you find this summary helpful?
Thank you for your feedback
Overview
Sets desired capacity for the specified Auto Scaling group.
Request
Request parameters
Parameter | Required | Type | Limitations | Description |
---|---|---|---|---|
autoScalingGroupName | Y | String | Min: 1 Max: 255 | Name of the Auto Scaling group to get |
desiredCapacity | Y | 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. |
Response
Response body
Examples
Request example
{AUTOSCALILNG_API_URL}/setDesiredCapacity
?autoScalingGroupName=asg-1
&desiredCapacity=0
Response example
<setDesiredCapacityResponse>
<requestId>9b414c18-0b78-4e8f-a20d-4f95a16628be</requestId>
<returnCode>0</returnCode>
<returnMessage>success</returnMessage>
<totalRows>1</totalRows>
<autoScalingGroupList>
<autoScalingGroup>
<autoScalingGroupName>asg-1</autoScalingGroupName>
<autoScalingGroupNo>***517</autoScalingGroupNo>
<launchConfigurationName>lc-1</launchConfigurationName>
<launchConfigurationNo>***013</launchConfigurationNo>
<desiredCapacity>0</desiredCapacity>
<minSize>0</minSize>
<maxSize>0</maxSize>
<loadBalancerInstanceSummeryList>
<loadBalancerInstanceSummery>
<loadBalancerName>slb-1</loadBalancerName>
</loadBalancerInstanceSummery>
<loadBalancerInstanceSummery>
<loadBalancerName>slb-2</loadBalancerName>
</loadBalancerInstanceSummery>
</loadBalancerInstanceSummeryList>
<healthCheckGracePeriod>600</healthCheckGracePeriod>
<healthCheckType>
<code>SVR</code>
<codeName>Server</codeName>
</healthCheckType>
<createDate>2014-02-13T17:24:19+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>
</setDesiredCapacityResponse>
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 | 50120 | An invalid or out-of-range value was supplied for the input parameter. |
400 | 50160 | You cannot delete an Auto Scaling group while there are scaling activities in progress for that group. |
Was this article helpful?