エラスティック保証の名前、説明、キャパシティなどの情報を変更します。キャパシティのスケールインのみがサポートされています。
今すぐお試しください
テスト
RAM 認証
|
アクション |
アクセスレベル |
リソースタイプ |
条件キー |
依存アクション |
|
ecs:ModifyElasticityAssurance |
update |
*ElasticityAssurance
|
なし | なし |
リクエストパラメーター
|
パラメーター |
型 |
必須 / 任意 |
説明 |
例 |
| RegionId |
string |
必須 |
エラスティック保証が属するリージョン ID。 DescribeRegions 操作を呼び出して、最新のリージョンリストを照会できます。 |
cn-hangzhou |
| PrivatePoolOptions.Id |
string |
必須 |
エラスティック保証の ID。 |
eap-bp67acfmxazb4**** |
| PrivatePoolOptions.Name |
string |
任意 |
エラスティック保証の名前。名前は 2~128 文字の長さにする必要があります。名前は文字で始まる必要があり、http:// または https:// で始めることはできません。名前に数字、コロン (:)、アンダースコア (_)、ハイフン (-) を含めることができます。 |
eapTestName |
| Description |
string |
任意 |
エラスティック保証の説明。説明は 2~256 文字の長さにする必要があり、 |
This is description. |
| InstanceAmount |
integer |
任意 |
キャパシティを予約するインスタンスの総数。有効な値:作成されたインスタンス数から 1000 まで。このパラメーターは、同じリクエスト内の他のパラメーターと相互排他的です。 |
10 |
| ClientToken |
string |
任意 |
リクエストのべき等性を保証するために使用されるクライアントトークン。クライアントを使用してトークンを生成できますが、トークンが異なるリクエスト間で一意であることを確認する必要があります。トークンの長さは 64 文字以内で、ASCII 文字のみ使用できます。詳細については、「べき等性を確保する方法」をご参照ください。 |
123e4567-e89b-12d3-a456-426655440000 |
| RecurrenceRules |
array<object> |
任意 |
時間分割エラスティック保証の保証スケジュール。 説明
時間分割エラスティック保証は、特定のリージョンおよび特定のユーザーのみが利用できます。時間分割エラスティック保証を使用するには、チケットを送信してください。 |
|
|
object |
任意 |
時間分割エラスティック保証の保証スケジュール。 説明
変更された保証スケジュールは、変更の翌日から有効になります。 |
||
| RecurrenceType |
string |
任意 |
保証スケジュールのタイプ。有効な値:
説明
このパラメーターを指定する場合、 |
Daily |
| RecurrenceValue |
string |
任意 |
時間分割エラスティック保証のキャパシティ予約が有効になる曜日または月の日、あるいはキャパシティ予約が有効になる間隔 (日数)。
説明
このパラメーターを指定する場合、 |
5 |
| StartHour |
integer |
任意 |
時間分割エラスティック保証のキャパシティ予約の保証期間の開始時刻。正時を指定します。 説明
StartHour と EndHour の両方を指定する必要があります。 |
4 |
| EndHour |
integer |
任意 |
時間分割エラスティック保証のキャパシティ予約の保証期間の終了時刻。正時を指定します。 |
10 |
レスポンスフィールド
|
フィールド |
型 |
説明 |
例 |
|
object |
|||
| RequestId |
string |
リクエスト ID。 |
8455DD10-84F8-43C9-8365-5F448EB169B6 |
例
成功レスポンス
JSONJSON
{
"RequestId": "8455DD10-84F8-43C9-8365-5F448EB169B6"
}
エラーコード
|
HTTP ステータスコード |
エラーコード |
エラーメッセージ |
説明 |
|---|---|---|---|
| 400 | InvalidRecurrenceRules.CountLimitExceeded | The count of RecurrenceRules exceeds the limit. | |
| 400 | InvalidRecurrenceRules.Unsupported | The specified parameter RecurrenceRules does not support for this resource package. | |
| 400 | InvalidRecurrenceRulesStartHourEndHour.TooShort | The recurrence hour between RecurrenceRules.StartHour and RecurrenceRules.EndHour is too short. | |
| 400 | InvalidParameter.RecurrenceRulesStartHourEndHour | The specified parameter RecurrenceRules.StartHour or RecurrenceRules.EndHour is invalid. | |
| 400 | InvalidParameter.RecurrenceRulesRecurrenceValueMonthly | The specified parameter RecurrenceRules.RecurrenceValue for Monthly is invalid. | |
| 400 | InvalidParameter.RecurrenceRulesRecurrenceValueWeekly | The specified parameter RecurrenceRules.RecurrenceValue for Weekly is invalid. | |
| 400 | InvalidParameter.RecurrenceRulesRecurrenceValueDaily | The specified parameter RecurrenceRules.RecurrenceValue for Daily is invalid. | |
| 400 | InvalidParameter.RecurrenceRulesRecurrenceType | The specified parameter RecurrenceRules.RecurrenceType is invalid. | |
| 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. | |
| 400 | InvalidParameter.PrivatePoolOptions.Name | The parameter PrivatePoolOptions.Name is invalid. | |
| 400 | InvalidParameter.ClientToken | The parameter ClientToken is invalid. | |
| 400 | InvalidParameter.Description | The parameter Description is invalid. | |
| 401 | InvalidUser.Unauthorized | The user is not authorized. | |
| 500 | InternalError | The request processing has failed due to some unknown error. | |
| 403 | InvalidOperation.ModifyTotalActiveTimeUnsupported | Not support to modify the total active time of resource package. | |
| 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 | InvalidInstanceAmount.LessThanUsedAmount | The specified parameter InstanceAmount is less than UsedAmount. | |
| 403 | InvalidOperation.InstanceAmountAndOtherAttributesUnsupported | Modify InstanceAmount and other attributes simultaneously is not supported. | |
| 403 | QuotaExceed.ElasticityAssuranceCapacity | ElasticityAssurance Capacity quota exceeded. | |
| 404 | InvalidPrivatePoolId.NotFound | The specified private pool does not exist. |
完全なリストについては、「エラーコード」をご参照ください。
変更履歴
完全なリストについては、「変更履歴」をご参照ください。