getAutoScalingPolicyList

Prev Next

Available in VPC

Get the list of scaling policies of Auto Scaling Group.

Request

This section describes the request format. The method and URI are as follows:

Method URI
GET | POST /vautoscaling/v2/getAutoScalingPolicyList
Note

This guide is based on the GET method. POST method call tests can be performed through Swagger in the API Gateway service of the NAVER Cloud Platform console.

Request headers

For information about the headers common to all Auto Scaling APIs, see Auto Scaling request headers.

Request query parameters

You can use the following query parameters with your request:

Field Type Required Description
regionCode String Optional Region code
autoScalingGroupNo String Required Auto Scaling Group number
policyNoList.N Array Optional Policy number list
  • Filter by the policy number.
  • Example: policyNoList.1=1234&policyNoList.2=2345
responseFormatType String Optional Format of the response data
  • xml (default) | json

Request example

The request example is as follows:

curl --location --request GET 'https://ncloud.apigw.ntruss.com/vautoscaling/v2/getAutoScalingPolicyList
?regionCode=KR
&autoScalingGroupNo=1***9
&responseFormatType=json' \
--header 'x-ncp-apigw-timestamp: {Timestamp}' \
--header 'x-ncp-iam-access-key: {Access Key}' \
--header 'x-ncp-apigw-signature-v2: {API Gateway Signature}'

Response

This section describes the response format.

Response body

The response body includes the following data:

Field Type Required Description
getAutoScalingPolicyListResponse Object - Response result
getAutoScalingPolicyListResponse.requestId String - ID for the request
  • UUID format
getAutoScalingPolicyListResponse.returnCode String - Response code
getAutoScalingPolicyListResponse.returnMessage String - Response message

Response status codes

For response status codes common to all Auto Scaling APIs, see Auto Scaling response status codes.

Response example

The response example is as follows:

{
    "getAutoScalingPolicyListResponse": {
        "totalRows": 3,
        "scalingPolicyList": [
            {
                "autoScalingGroupNo": "1***9",
                "policyNo": "3382",
                "policyName": "up",
                "adjustmentType": {
                    "code": "CHANG",
                    "codeName": "Capacity change amount"
                },
                "scalingAdjustment": 1,
                "coolDown": 300
            },
            {
                "autoScalingGroupNo": "1***9",
                "policyNo": "3426",
                "policyName": "pol1",
                "adjustmentType": {
                    "code": "CHANG",
                    "codeName": "Capacity change amount"
                },
                "scalingAdjustment": 1,
                "coolDown": 300
            },
            {
                "autoScalingGroupNo": "1***9",
                "policyNo": "3381",
                "policyName": "down",
                "adjustmentType": {
                    "code": "CHANG",
                    "codeName": "Capacity change amount"
                },
                "scalingAdjustment": -1,
                "coolDown": 300
            }
        ],
        "requestId": "2b5c1f43-****-****-****-189c39772635",
        "returnCode": "0",
        "returnMessage": "success"
    }
}