executePolicy

Prev Next

概要

スケーリングポリシーの実行

説明

指定されたスケーリングポリシー(policy)を実行します。

リクエストパラメータ

パラメータ名 必須 タイプ 制約事項 説明
policyName Yes String Min : 1, Max : 255 実行するスケーリングポリシー名
autoScalingGroupName Yes String Min : 1, Max : 255 ポリシーを実行するオートスケーリンググループ名を入力します。
honorCooldown No Boolean - Cooldown時間遵守区分
が apiを呼び出した当時がscaling actionの途中であったり、cooldown時間である場合、これを遵守するかを定めます。trueである場合は遵守、falseである場合は遵守しません。
デフォルト値はfalse、すなわち、明示的にtrueに指定しない場合は遵守しません。

レスポンスデータタイプ

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

例示

呼び出し

ncloud autoscaling executePolicy --policyName test-autoscaling-policy --autoScalingGroupName soso02

レスポンス

{
  "executePolicyResponse": {
    "requestId": "50281fd3-41e6-4ffe-a5e7-ef37103867b6",
    "returnCode": "0",
    "returnMessage": "success"
  }
}
<?xml version="1.0" encoding="UTF-8" ?>
<executePolicyResponse>
  <requestId>50281fd3-41e6-4ffe-a5e7-ef37103867b6</requestId>
  <returnCode>0</returnCode>
  <returnMessage>success</returnMessage>
</executePolicyResponse>