executePolicy

Prev Next

Overview

Operate an assigned scaling policy

Description

Operate an assigned scaling policy.

Request Parameters

Parameter Required Type Restrictions Description
policyName Yes String Min : 1, Max : 255 Policy name. The identifier of a scaling policy.
autoScalingGroupName Yes String Min : 1, Max : 255 The name(Identifier) of Auto Scaling Group that this policy will be operated
honorCooldown No Boolean - Whether to honor cooldown period
If the api is called while a scaling action is underway or is under cooldown, you must decide whether to keep the cooldown progress or not. If it is true, the cooldown will be continued, and if it is false, the cooldown will be stopped.
The default value is false. It means the cooldown will not be continued if you do not change the default value to true.

Response Data type

  • CommonResponse Type
CommonResponse extends BaseObject
private String requestId;
private String returnCode;
private String returnMessage;

Examples

Request

ncloud autoscaling executePolicy --policyName test-autoscaling-policy --autoScalingGroupName soso02

Response

{
  "executePolicyResponse": {
    "requestId": "50281fd3-41e6-4ffe-a5e7-ef37103867b6",
    "returnCode": "0",
    "returnMessage": "success"
  }
}
<?xml version="1.0" encoding="UTF-8" ?>
<executePolicyResponse>
  <requestId>50281fd3-41e6-4ffe-a5e7-ef37103867b6</requestId>
  <returnCode>0</returnCode>
  <returnMessage>success</returnMessage>
</executePolicyResponse>