getAutoScalingPolicyList

Prev Next

概要

Auto Scalingポリシーリスト照会

説明

設定できるポリシー(policy)調整タイプをリストの形式で受け取ります。

リクエストパラメータ

パラメータ名 必須 タイプ 制約事項 説明
policyNameList No List Min : 1, Max : 255 ポリシー名(識別子)のリストです。
指定されてない場合、ユーザーが保有しているすべてのポリシー情報を受け取ります。
autoScalingGroupName No String Min : 1, Max : 255 照会しようとするAuto Scaling Group名を入力します。
pageNo No Integer Min:0, Max:2147483647 リストを照会する時、Paginationのページ情報を入力します。
基本値の0を入力した場合、すべてのリストを照会します。
pageSize No Integer Min:0, Max:2147483647 リストを照会する時、Pagination表示される情報の個数を入力します。
基本値の0を入力した場合、すべてのリストを照会します。

レスポンスデータタイプ

  • ScalingPolicyListタイプ
ScalingPolicyList extends CommonResponse
private Integer totalRows;
private List scalingPolicyList = new ArrayList();
ScalingPolicy extends BaseObject
private String policyName;
private String autoScalingGroupName;
private CommonCode adjustmentType;
private Integer scalingAdjustment;
private Integer cooldown;
private Integer minAdjustmentStep;

例示

呼び出し

ncloud autoscaling getAutoScalingPolicyList --policyNameList test-autoscaling-policy

レスポンス

{
  "getAutoScalingPolicyListResponse": {
    "requestId": "17f3d224-a06c-4159-a46d-b5c1b138750e",
    "returnCode": "0",
    "returnMessage": "success",
    "totalRows": 1,
    "scalingPolicyList": [
      {
        "policyName": "test-autoscaling-policy",
        "autoScalingGroupName": "soso02",
        "adjustmentType": {
          "code": "EXACT",
          "codeName": "ExactCapacity"
        },
        "scalingAdjustment": 22
      }
    ]
  }
}
<?xml version="1.0" encoding="UTF-8" ?>
<getAutoScalingPolicyListResponse>
  <requestId>17f3d224-a06c-4159-a46d-b5c1b138750e</requestId>
  <returnCode>0</returnCode>
  <returnMessage>success</returnMessage>
  <totalRows>1</totalRows>
  <scalingPolicyList>
    <policyName>test-autoscaling-policy</policyName>
    <autoScalingGroupName>soso02</autoScalingGroupName>
    <adjustmentType>
      <code>EXACT</code>
      <codeName>ExactCapacity</codeName>
    </adjustmentType>
    <scalingAdjustment>22</scalingAdjustment>
  </scalingPolicyList>
</getAutoScalingPolicyListResponse>