キャパシティ予約の名前、説明、リリースモード、およびキャパシティが予約されている Elastic Compute Service (ECS) インスタンスの総数などの情報を変更します。
今すぐお試しください
テスト
RAM 認証
|
アクション |
アクセスレベル |
リソースタイプ |
条件キー |
依存アクション |
|
ecs:ModifyCapacityReservation |
update |
*CapacityReservation
|
なし | なし |
リクエストパラメーター
|
パラメーター |
型 |
必須 / 任意 |
説明 |
例 |
| RegionId |
string |
必須 |
キャパシティ予約のリージョン ID です。DescribeRegions 操作を呼び出して、最新のリージョンリストを照会できます。 |
cn-hangzhou |
| PrivatePoolOptions.Id |
string |
必須 |
キャパシティ予約 ID です。 |
crp-bp67acfmxazb4**** |
| PrivatePoolOptions.Name |
string |
任意 |
キャパシティ予約の名前です。名前は 2~128 文字である必要があります。先頭は英字である必要があり、`http://` または `https://` で始めることはできません。英字、数字、コロン (:)、アンダースコア (_)、ハイフン (-) を使用できます。 |
eapTestName |
| Description |
string |
任意 |
キャパシティ予約の説明です。説明は 2~256 文字である必要があります。`http://` または `https://` で始めることはできません。 |
This is description. |
| StartTime |
string |
任意 |
キャパシティ予約が有効になるモードです。即時有効なキャパシティ予約のみがサポートされています。このパラメーターの値を指定する必要はありません。 説明
このパラメーターの値を指定しない場合、キャパシティ予約はすぐに有効になります。 |
Now |
| EndTime |
string |
任意 |
キャパシティ予約の有効期限です。このパラメーターは、`EndTimeType` が Limited に設定されている場合にのみ有効になります。時間は ISO 8601 標準の `yyyy-MM-ddTHH:mm:ssZ` 形式で指定する必要があります。時間は協定世界時 (UTC) である必要があります。詳細については、「ISO 8601」をご参照ください。 |
2021-10-30T06:32:00Z |
| EndTimeType |
string |
任意 |
キャパシティ予約のリリースモードです。有効な値:
|
Unlimited |
| Platform |
string |
任意 |
インスタンスが使用するイメージのオペレーティングシステムです。有効な値:
説明
このパラメーターは利用できません。 |
Linux |
| InstanceAmount |
integer |
任意 |
キャパシティが予約されているインスタンスの総数です。有効な値:使用済みインスタンス数から 1000 まで。 説明
インスタンス数を増やすと、リソース不足により失敗する場合があります。 |
100 |
レスポンスフィールド
|
フィールド |
型 |
説明 |
例 |
|
object |
|||
| RequestId |
string |
リクエスト ID です。 |
8455DD10-84F8-43C9-8365-5F448EB169B6 |
例
成功レスポンス
JSONJSON
{
"RequestId": "8455DD10-84F8-43C9-8365-5F448EB169B6"
}
エラーコード
|
HTTP ステータスコード |
エラーコード |
エラーメッセージ |
説明 |
|---|---|---|---|
| 400 | InvalidInstanceAmount.ValueNotSupported | The specified parameter InstanceAmount is not valid. | |
| 400 | InvalidDescription.ValueNotSupported | The specified Description is invalid. | |
| 400 | InvalidEndTime.ValueNotSupported | The specified EndTime is invalid. | |
| 400 | InvalidStartTime.ValueNotSupported | The specified StartTime is invalid. | |
| 401 | InvalidUser.Unauthorized | The user is not authorized. | |
| 500 | InternalError | The request processing has failed due to some unknown error. | |
| 403 | IncorrectPrivatePoolStatus | The current status of the private pool does not support this operation. | |
| 403 | OperationDenied.NoStock | The requested resource is sold out in the specified zone; try other types of resources or other regions and zones. | |
| 403 | InvalidPrivatePoolOptionsName.ValueNotSupported | The specified PrivatePoolOptions.Name is invalid. | |
| 403 | InvalidPlatform.ValueNotSupported | The specified Platform is invalid. | |
| 403 | OperationDenied.PlatformNotSupported | The specified private pool does not support this operation. | |
| 403 | OperationDenied.EndTimeTypeNotSupported | The specified private pool does not support this operation. | |
| 403 | OperationDenied.StartTimeNotSupported | The specified private pool does not support this operation. | |
| 403 | OperationDenied.InstanceAmountNotSupported | The specified private pool does not support this operation. | |
| 403 | InvalidInstanceAmount.ValueNotSupported | The specified InstanceAmount is invalid. | |
| 403 | InvalidPrivatePoolOptions.Id | The specified private pool does not support this operation. | |
| 403 | OperationDenied.InstanceTypeNotAuthorized | The specified InstanceType is not available or not authorized. | |
| 404 | InvalidPrivatePoolId.NotFound | The specified private pool does not exist. |
完全なリストについては、「エラーコード」をご参照ください。
変更履歴
完全なリストについては、「変更履歴」をご参照ください。