setDesiredCapacity
    • PDF

    setDesiredCapacity

    • PDF

    Article Summary

    概要

    指定されたAuto Scaling Groupに対するdesired capacityの設定

    リクエスト

    リクエストパラメータ

    パラメータ名必須タイプ制約事項説明
    autoScalingGroupNameYesStringMin : 1
    Max : 255
    照会しようとするオートスケーリンググループ名を入力します。
    desiredCapacityYesIntegerMin: 0
    Max : 30
    サービスで期待されるキャパシティであり、該当するグループ所属で運用されるサーバインスタンスの数を設定します。.
    この値はオートスケーリングに、すでに設定されている既存属性のminSize より大きく、 maxSizeより小さく設定する必要があります。

    レスポンス

    レスポンスボディ

    例示

    リクエスト例示

    {AUTOSCALILNG_API_URL}/setDesiredCapacity
    ?autoScalingGroupName=asg-1
    &desiredCapacity=0
    

    レスポンス例示

    <setDesiredCapacityResponse>
       <requestId>9b414c18-0b78-4e8f-a20d-4f95a16628be</requestId>
       <returnCode>0</returnCode>
       <returnMessage>success</returnMessage>
       <totalRows>1</totalRows>
       <autoScalingGroupList>
          <autoScalingGroup>
             <autoScalingGroupName>asg-1</autoScalingGroupName>
             <autoScalingGroupNo>***517</autoScalingGroupNo>
             <launchConfigurationName>lc-1</launchConfigurationName>
             <launchConfigurationNo>***013</launchConfigurationNo>
             <desiredCapacity>0</desiredCapacity>
             <minSize>0</minSize>
             <maxSize>0</maxSize>
             <loadBalancerInstanceSummeryList>
                <loadBalancerInstanceSummery>
                   <loadBalancerName>slb-1</loadBalancerName>
                </loadBalancerInstanceSummery>
                <loadBalancerInstanceSummery>
                   <loadBalancerName>slb-2</loadBalancerName>
                </loadBalancerInstanceSummery>
             </loadBalancerInstanceSummeryList>
             <healthCheckGracePeriod>600</healthCheckGracePeriod>
             <healthCheckType>
                <code>SVR</code>
                <codeName>Server</codeName>
             </healthCheckType>
             <createDate>2014-02-13T17:24:19+0900</createDate>
             <inAutoScalingGroupServerInstanceList />
             <suspendedProcessList />
             <zoneList>
                <zone>
                   <zoneNo>2</zoneNo>
                   <zoneName>zone2</zoneName>
                   <zoneDescription>nang zone</zoneDescription>
                </zone>
                <zone>
                   <zoneNo>3</zoneNo>
                   <zoneName>zone3</zoneName>
                   <zoneDescription>nang zone2</zoneDescription>
                </zone>
             </zoneList>
          </autoScalingGroup>
       </autoScalingGroupList>
    </setDesiredCapacityResponse>
    

    エラーコード

    以下のエラーコードは、このアクション(Action)で特徴的に発生するエラーです。共通的に発生するエラーに対する詳細な説明はNAVER Cloud Platform APIをご参考ください。

    HTTP Response Codeリターンコードリターンメッセージ
    40050120An invalid or out-of-range value was supplied for the input parameter.
    40050160You cannot delete an Auto Scaling group while there are scaling activities in progress for that group.

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

    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.