Documentation Index

Fetch the complete documentation index at: https://cli.ncloud-docs.com/llms.txt

Use this file to discover all available pages before exploring further.

getAutoScalingPolicyList

Prev Next

VPC環境で利用できます。

概要

Scalingポリシーリストを照会します。

リクエスト

リクエストパラメータ

パラメータ名 必須有無 タイプ 制約事項 説明
regionCode No String リージョンコード
Scalingポリシーリストが照会されるAuto Scaling Groupのリージョン(Region)を決定できます。
regionCodeはgetRegionListアクションを通じて取得できます。
Default:getRegionList照会結果の最初のリージョンを選択
autoScalingGroupNo Yes String Auto Scaling Group番号
autoScalingGroupNoはgetAutoScalingGroupListアクションを通じて取得できます。
policyNoList.N No List<String> ポリシー番号リスト
Scalingポリシー番号でフィルタリングして検索できます。
policyNoはgetAutoScalingPolicyListアクションを通じて取得できます。
ex) policyNoList.1=1234&policyNoList.2=2345
responseFormatType No String レスポンス結果のフォーマットタイプ
Options : xml | json
Default : xml

レスポンス

レスポンスデータのタイプ

  • ScalingPolicyListタイプ
ScalingPolicyList extends CommonResponse
private Integer totalRows;
private List scalingPolicyList = new ArrayList<>();
ScalingPolicy
private String autoScalingGroupNo;
private String policyNo;
private String policyName;
private CommonCode adjustmentType;
private Integer scalingAdjustment;
private Integer minAdjustmentStep;
private Integer coolDown;

リクエスト例

ncloud vautoscaling getAutoScalingPolicyList --regionCode KR --autoScalingGroupNo ***700 --policyNoList ***922

レスポンス例

<getAutoScalingPolicyListResponse>
  <requestId>dcbf41de-b9d4-460d-a594-60d77ec25bf1</requestId>
  <returnCode>0</returnCode>
  <returnMessage>success</returnMessage>
  <totalRows>1</totalRows>
  <scalingPolicyList>
    <scalingPolicy>
      <autoScalingGroupNo>***700</autoScalingGroupNo>
      <policyNo>***922</policyNo>
      <policyName>test-***</policyName>
      <adjustmentType>
        <code>CHANG</code>
        <codeName>ChangeInCapacity</codeName>
      </adjustmentType>
      <scalingAdjustment>1</scalingAdjustment>
      <coolDown>300</coolDown>
    </scalingPolicy>
  </scalingPolicyList>
</getAutoScalingPolicyListResponse>