MENU
      terminateServerInstanceInAutoScalingGroup
        • PDF

        terminateServerInstanceInAutoScalingGroup

        • PDF

        記事の要約

        概要

        Auto Scaling Groupに属するサーバインスタンスの削除

        説明

        指定されたサーバインスタンスを返却できます。サーバインスタンスの削除と同時にグループサイズを一つ(one)減少させるように選択できます。

        リクエストパラメータ

        パラメータ名必須タイプ制約事項説明
        serverInstanceNoYesString-削除するサーバインスタンスの識別番号です。
        サーバインスタンスがAuto Scaling Groupに属してない場合は有効ではありません。
        shouldDecrementDesiredCapacityYesBoolean-サーバインスタンスの削除と同時に所属Auto Scaling Groupのsizeを一つ(one)減少させるのかに対する区分です。
        減少させる場合はtrueであり、減少させない場合はfalseを入力します。
        ※ この値がtrueである場合、グループサイズが既存グループサイズの - 1になります。

        レスポンスデータタイプ

        • CommonResponseタイプ
        CommonResponse extends BaseObject
        private String requestId;
        private String returnCode;
        private String returnMessage;

        例示

        呼び出し

        ncloud autoscaling terminateServerInstanceInAutoScalingGroup --serverInstanceNo 401184 --shouldDecrementDesiredCapacity true
        Plain text

        レスポンス

        {
          "terminateServerInstanceInAutoScalingGroupResponse": {
            "requestId": "163f6617-d105-47ab-8c3d-840b56051e68",
            "returnCode": "0",
            "returnMessage": "success"
          }
        }
        JSON
        <?xml version="1.0" encoding="UTF-8" ?>
        <terminateServerInstanceInAutoScalingGroupResponse>
          <requestId>163f6617-d105-47ab-8c3d-840b56051e68</requestId>
          <returnCode>0</returnCode>
          <returnMessage>success</returnMessage>
        </terminateServerInstanceInAutoScalingGroupResponse>
        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.