Available in VPC
Delete a scaling policy of Auto Scaling Group.
Syntax
The deleteScalingPolicy syntax is as follows:
./ncloud vautoscaling deleteScalingPolicy \
--autoScalingGroupNo <auto-scaling-group-no> \
--policyNo <policy-no> \
[--regionCode <KR|SGN|JPN>] \
[--output <json|xml>]
Options
This section describes the options available when running deleteScalingPolicy.
Required options
The following options are required for deleteScalingPolicy.
| Options | Type | Required | Description |
|---|---|---|---|
--autoScalingGroupNo |
String | Required | Auto Scaling Group number |
--policyNo |
String | Required | Policy number |
Common options
For information on options commonly used in the vautoscaling command, see Auto Scaling (VPC) options.
Examples
If the request to delete a scaling policy is successful, the configuration information for the deleted scaling policy is returned.
Command
The command example is as follows:
./ncloud vautoscaling deleteScalingPolicy \
--autoScalingGroupNo 20461037 \
--policyNo 28470019 \
--regionCode KR \
--output json
Output
The output example is as follows:
{
"deleteScalingPolicyResponse": {
"totalRows": 1,
"scalingPolicyList": [
{
"autoScalingGroupNo": "20461037",
"policyNo": "28470019",
"policyName": "policy-01",
"adjustmentType": {
"code": "CHANG",
"codeName": "Capacity change amount"
},
"scalingAdjustment": 1,
"coolDown": 300
}
],
"requestId": "d0e1f2a3-b4c5-6789-defa-012345678901",
"returnCode": "0",
"returnMessage": "success"
}
}