Overview
Get the list of descriptions of Auto Scaling policies.
Request
Request parameters
Parameter name | Required | Type | Restrictions | Description |
---|---|---|---|---|
policyNameList | No | List | Min: 1, Max: 255 | - List of policy names (identifiers) If not specified, receive all policy information held by the user. |
autoScalingGroupName | No | String | Min: 1, Max: 255 | Enter the name of the auto scaling group you want to query. |
pageNo | No | Integer | Min: 0, Max: 2147483647 | Enter the page information of pagination when querying the list. If you enter the default value 0, all lists will be queried. |
pageSize | No | Integer | Min: 0, Max: 2147483647 | Enter the number of information per page in pagination when querying the list. If you enter the default value 0, all lists will be queried. |
responseFormatType | No | String | - Response result's format type Options: xml | json Default: xml |
Response
Response body
Examples
Request example
{AUTOSCALILNG_API_URL}/getAutoScalingPolicyList
?autoScalingGroupName=asg-0602b
&pageNo=1
&pageSize=10
&policyNameList.1=scale-out
&policyNameList.2=scale-in
Response example
<getAutoScalingPolicyListResponse>
<requestId>b3b5947c-a4fd-4104-b619-ba472665d50c</requestId>
<returnCode>0</returnCode>
<returnMessage>success</returnMessage>
<totalRows>2</totalRows>
<scalingPolicyList>
<scalingPolicy>
<policyName>scale-in</policyName>
<autoScalingGroupName>asg-0602b</autoScalingGroupName>
<adjustmentType>
<code>CHANG</code>
<codeName>ChangeInCapacity</codeName>
</adjustmentType>
<scalingAdjustment>-1</scalingAdjustment>
</scalingPolicy>
<scalingPolicy>
<policyName>scale-out</policyName>
<autoScalingGroupName>asg-0602b</autoScalingGroupName>
<adjustmentType>
<code>PRCNT</code>
<codeName>PercentChangeInCapacity</codeName>
</adjustmentType>
<scalingAdjustment>50</scalingAdjustment>
<cooldown>600</cooldown>
<minAdjustmentStep>2</minAdjustmentStep>
</scalingPolicy>
</scalingPolicyList>
</getAutoScalingPolicyListResponse>