Available in VPC
Get the list of scaling policies of Auto Scaling Group.
Syntax
The getAutoScalingPolicyList syntax is as follows:
./ncloud vautoscaling getAutoScalingPolicyList \
--autoScalingGroupNo <auto-scaling-group-no> \
[--policyNoList <policy-no-list>] \
[--regionCode <KR|SGN|JPN>] \
[--output <json|xml>]
Options
This section describes the options available when running getAutoScalingPolicyList.
Required options
The following options are required for getAutoScalingPolicyList.
| Options | Type | Required | Description |
|---|---|---|---|
--autoScalingGroupNo |
String | Required | Auto Scaling Group number |
Optional options
These are the optional options for getAutoScalingPolicyList. Options that are not specified will use their default values.
| Options | Type | Required | Description |
|---|---|---|---|
--policyNoList |
List | Optional | Policy number list
|
Common options
For information on options commonly used in the vautoscaling command, see Auto Scaling (VPC) options.
Examples
If the request to retrieve the list of scaling policies is successful, the configuration information for each scaling policy is returned.
Command
The command example is as follows:
./ncloud vautoscaling getAutoScalingPolicyList \
--autoScalingGroupNo 20461037 \
--policyNoList 28470019 \
--regionCode KR \
--output json
Output
The output example is as follows:
{
"getAutoScalingPolicyListResponse": {
"totalRows": 1,
"scalingPolicyList": [
{
"autoScalingGroupNo": "20461037",
"policyNo": "28470019",
"policyName": "policy-01",
"adjustmentType": {
"code": "CHANG",
"codeName": "Capacity change amount"
},
"scalingAdjustment": 1,
"coolDown": 300
}
],
"requestId": "b8c9d0e1-f2a3-4567-bcde-890123456789",
"returnCode": "0",
"returnMessage": "success"
}
}