MENU
      setDesiredCapacity
        • PDF

        setDesiredCapacity

        • PDF

        記事の要約

        VPC環境で利用できます。

        概要

        Auto Scaling Groupの詳細情報のうち、希望する容量の設定を修正します。

        リクエスト

        リクエストパラメータ

        パラメータ名必須有無タイプ制約事項説明
        regionCodeNoStringリージョンコード
        希望する容量を修正するAuto Scaling Groupのリージョン(Region)を決定できます。
        regionCodeはgetRegionListアクションを通じて取得できます。
        Default:getRegionList照会結果の最初のリージョンを選択
        autoScalingGroupNoYesString希望する容量を修正するAuto Scaling Group番号
        autoScalingGroupNoはgetAutoScalingGroupListアクションを通じて取得できます。
        desiredCapacityYesIntegerMin : 0, Max : 30希望する容量
        希望する容量に応じてサーバ数が調整されます。
        変更しようとする希望する容量は、既に設定されているminSize以上でなおかつmaxSize以下でなければなりません。
        responseFormatTypeNoStringレスポンス結果のフォーマットタイプ
        Options : xml | json
        Default : xml

        レスポンス

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

        • AutoScalingGroupListタイプ
        AutoScalingGroupList extends CommonResponse
        private Integer totalRows;
        private List autoScalingGroup = new ArrayList<>();
        AutoScalingGroup
        private String vpcNo;
        private String subnetNo;
        private String serverNamePrefix;
        private String autoScalingGroupNo;
        private String autoScalingGroupName;
        private String launchConfigurationNo;
        private Integer minSize;
        private Integer maxSize;
        private Integer desiredCapacity;
        private Integer defaultCoolDown;
        private Integer healthCheckGracePeriod;
        private CommonCode healthCheckType;
        private Date createDate;
        private CommonCode autoScalingGroupStatus;
        private TargetGroupNoList targetGroupNoList;
        private List inAutoScalingGroupServerInstanceList;
        private AccessControlGroupNoList accessControlGroupNoList;
        private List suspendedProcessList;
        TargetGroupNoList
        private List targetGroupNoList = new ArrayList<>();
        InAutoScalingGroupServerInstance
        private String serverInstanceNo;
        private CommonCode healthStatus;
        private CommonCode lifecycleState;
        AccessControlGroupNoList
        private List accessControlGroupNoList = new ArrayList<>();
        SuspendedProcess
        private CommonCode process;
        private String suspensionReason;

        リクエスト例

        ncloud vautoscaling setDesiredCapacity --regionCode KR --autoScalingGroupNo ***700 --desiredCapacity 0
        Plain text

        レスポンス例

        <setDesiredCapacityResponse>
          <requestId></requestId>
          <returnCode>0</returnCode>
          <returnMessage>success</returnMessage>
          <totalRows>1</totalRows>
          <autoScalingGroupList>
            <autoScalingGroup>
              <vpcNo>***04</vpcNo>
              <subnetNo>***43</subnetNo>
              <serverNamePrefix></serverNamePrefix>
              <autoScalingGroupNo>***700</autoScalingGroupNo>
              <autoScalingGroupName>test-***</autoScalingGroupName>
              <launchConfigurationNo>***163</launchConfigurationNo>
              <minSize>0</minSize>
              <maxSize>0</maxSize>
              <desiredCapacity>0</desiredCapacity>
              <defaultCoolDown>300</defaultCoolDown>
              <healthCheckGracePeriod>300</healthCheckGracePeriod>
              <healthCheckType>
                <code>SVR</code>
                <codeName>Server</codeName>
              </healthCheckType>
              <createDate>2020-12-07T13:10:30+0900</createDate>
              <autoScalingGroupStatus>
                <code>CREAT</code>
                <codeName>Created</codeName>
              </autoScalingGroupStatus>
              <targetGroupNoList/>
              <inAutoScalingGroupServerInstanceList/>
              <accessControlGroupNoList>
                <accessControlGroupNo>***63</accessControlGroupNo>
              </accessControlGroupNoList>
              <suspendedProcessList/>
            </autoScalingGroup>
          </autoScalingGroupList>
        </setDesiredCapacityResponse>
        XML

        この記事は役に立ちましたか?

        Changing your password will log you out immediately. Use the new password to log back in.
        First name must have atleast 2 characters. Numbers and special characters are not allowed.
        Last name must have atleast 1 characters. Numbers and special characters are not allowed.
        Enter a valid email
        Enter a valid password
        Your profile has been successfully updated.