getAutoScalingPolicyList
- Print
- PDF
getAutoScalingPolicyList
- Print
- PDF
Article summary
Did you find this summary helpful?
Thank you for your feedback
Overview
Gets a list of Auto Scaling policies.
Request
Request parameters
Parameter | Required | Type | Limitations | Description |
---|---|---|---|---|
policyNameList | N | List | Min: 1, Max: 255 | List of policy names If this parameter is not specified, all your policy information is returned. |
autoScalingGroupName | N | String | Min: 1, Max: 255 | Name of the Auto Scaling group to get |
pageNo | N | Integer | Min: 0, Max: 2147483647 | Page number for pagination If it is set to 0 by default, all items are displayed. |
pageSize | N | Integer | Min: 0, Max: 2147483647 | Number of items to be shown per page. If it is set to 0 by default, all items are displayed. |
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>
Was this article helpful?