executePolicy
- Print
- PDF
executePolicy
- Print
- PDF
Article summary
Did you find this summary helpful?
Thank you for your feedback
Overview
Executes a scaling policy.
Request
Request parameters
Parameter | Required | Type | Limitations | Description |
---|---|---|---|---|
policyName | Y | String | Min: 1, Max: 255 | Name of the scaling policy to execute |
autoScalingGroupName | Y | String | Min: 1, Max: 255 | Name of the Auto Scaling group for which you want to execute the policy |
honorCooldown | N | Boolean | - | Indicates whether to honor the cooldown time. If the scaling action is being performed or it is the cooldown time when this API request is made, you can choose whether to honor the cooldown time. Default: false |
Response
Response body
Examples
Request example
{AUTOSCALILNG_API_URL}/executePolicy
?autoScalingGroupName=asg-0602b
&honorCooldown=true
&policyName=p-0602
Response example
<executePolicyResponse>
<requestId>0c811c22-cdd3-47e5-8d8b-434071de2e46</requestId>
<returnCode>0</returnCode>
<returnMessage>success</returnMessage>
</executePolicyResponse>
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. |
Was this article helpful?