terminateServerInstanceInAutoScalingGroup

Prev Next

概要

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

説明

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

リクエストパラメータ

パラメータ名 必須 タイプ 制約事項 説明
serverInstanceNo Yes String - 削除するサーバインスタンスの識別番号です。
サーバインスタンスがAuto Scaling Groupに属してない場合は有効ではありません。
shouldDecrementDesiredCapacity Yes Boolean - サーバインスタンスの削除と同時に所属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

レスポンス

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