Elastic Compute Service (ECS) インスタンスのプライベートプールのタイプを変更します。
操作説明
プライベートプールは、エラスティックアシュアランスまたはキャパシティ予約が作成された後に生成されます。プライベートプールは、それを使用するインスタンスに関する情報と関連付けられます。ECS インスタンスを作成する際にプライベートプールを使用するかどうかを指定して、インスタンスを関連するエラスティックアシュアランスまたはキャパシティ予約と照合できます。
-
この操作を呼び出して ECS インスタンスのプライベートプール属性を変更した後、変更を有効にするためにインスタンスを再起動する必要はありません。
-
ECS インスタンスに対して次の操作を呼び出すと、システムはインスタンスをアクティブなプライベートプールと照合しようとします。インスタンスがすでに指定されたプライベートプールに照合されている場合、プライベートプールのキャパシティが使い果たされたり、プライベートプールが期限切れになったりすると、操作の呼び出しが失敗する可能性があります。呼び出しが失敗した場合は、ModifyInstanceAttachmentAttributes 操作を呼び出して、プライベートプールのタイプを
Openに変更します。StartInstance: 節約モードで停止している ECS インスタンスを起動します。
ReActivateInstances: 期限切れまたは支払い遅延により回収された ECS インスタンスを再アクティブ化します。
ModifyInstanceChargeType: ECS インスタンスの課金方法を変更します。
ModifyPrepayInstanceSpec: ECS インスタンスのインスタンスタイプを変更します。
ReplaceSystemDisk: ECS インスタンスのオペレーティングシステムを置き換えます。
今すぐお試しください
テスト
RAM 認証
|
アクション |
アクセスレベル |
リソースタイプ |
条件キー |
依存アクション |
|
ecs:ModifyInstanceAttachmentAttributes |
update |
*Instance
|
なし | なし |
リクエストパラメーター
|
パラメーター |
型 |
必須 / 任意 |
説明 |
例 |
| RegionId |
string |
必須 |
プライベートプールのリージョン ID。DescribeRegions 操作を呼び出して、最新のリージョンリストを照会できます。 |
cn-hangzhou |
| InstanceId |
string |
必須 |
プライベートプールの属性を変更するインスタンスの ID。 |
i-bp67acfmxazb4**** |
| PrivatePoolOptions.MatchCriteria |
string |
必須 |
プライベートプールの新しいタイプ。有効な値:
|
Open |
| PrivatePoolOptions.Id |
string |
任意 |
プライベートプールの ID。プライベートプールを生成するエラスティックアシュアランスまたはキャパシティ予約の ID に値を設定します。
|
eap-bp67acfmxazb4**** |
レスポンスフィールド
|
フィールド |
型 |
説明 |
例 |
|
object |
|||
| RequestId |
string |
リクエスト ID。 |
473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E |
例
成功レスポンス
JSONJSON
{
"RequestId": "473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E"
}
エラーコード
|
HTTP ステータスコード |
エラーコード |
エラーメッセージ |
説明 |
|---|---|---|---|
| 400 | MissingParameter.RegionId | The specified RegionId should not be null. | |
| 400 | MissingParameter.InstanceId | The specified InstanceId should not be null. | |
| 400 | InvalidResourcePackage.BizStatus | The resource package business status is not supported. | |
| 400 | InvalidInstanceId.MalFormed | The specified InstanceId is not valid. | |
| 400 | DedicatedHostNotSupported | DedicatedHost is not supported for PrivatePool. | |
| 400 | SpotNotSupported | Spot is not supported for PrivatePool. | |
| 400 | ClassicNetworkNotSupported | Classic network is not supported for PrivatePool. | |
| 400 | Invalid.InstanceId | Instance does not exist. | |
| 400 | Invalid.PrivatePoolOptions.MatchCriteria | Target mode does not support this operation. | |
| 400 | MissingParameter.PrivatePoolOptions.Id | The specified PrivatePoolOptions.Id should not be null. | |
| 400 | Invalid.PrivatePoolOptions.Id | The PrivatePool does not exist. | |
| 400 | Invalid.InstanceType | The InstanceType does not match the PrivatePool. | |
| 400 | Invalid.InstanceChargeType | The InstanceChargeType does not match the PrivatePool. | |
| 400 | Invalid.ZoneId | The ZoneId does not match the PrivatePool. | |
| 400 | Invalid.PrivatePoolOptions.NoStock | The PrivatePool has been used up. | |
| 400 | InvalidPlatform.ValueNotSupported | The Platform does not match the PrivatePool. | |
| 400 | Invalid.PrivatePoolOptions.status | The PrivatePool is expired or inactive. | |
| 400 | InvalidAliUid | The PrivatePool does not belong to the user of the Instance. | |
| 400 | MissingParameter.PackageType | The specified parameter "PackageType" can not be empty. | |
| 400 | MissingParameter.PrivatePoolOptions.Ids | The specified parameter "PrivatePoolOptions.Ids" can not be empty. | |
| 400 | MissingParameter.InstanceCpuCoreCount | The specified parameter "InstanceCpuCoreCount" can not be empty. | |
| 400 | MissingParameter.InstanceAmount | The specified parameter "InstanceAmount" can not be empty. | |
| 400 | MissingParameter.InstanceCpuCoreCountOrInstanceAmount | The specified parameter "InstanceCpuCoreCount" and "InstanceAmount" must not be empty at the same time. | |
| 400 | Invalid.TooManyPrivatePoolOptions.Ids | Too many PrivatePoolOptions.Ids in this request. | |
| 400 | Invalid.TooManyZoneIds | Too many ZoneIds in the request. | |
| 400 | Invalid.TooManyInstanceTypes | Too many InstanceTypes in the request. | |
| 400 | Invalid.TooManyUnpaidPrivatePool | Too many PrivatePools create but still unpaid. | |
| 400 | Invalid.InstanceCpuCoreCountOrInstanceAmount | Both InstanceCpuCoreCount and InstanceAmount are provided. | |
| 400 | Invalid.PrivatePoolOptions.Ids | The specified parameter "PrivatePoolOptions.Ids" exist invalid element Id. | |
| 400 | Invalid.PackageType | The specified parameter "PackageType" is invalid. | |
| 400 | Invalid.PrivatePool.Purchase | The PrivatePool has already paid. | |
| 400 | Invalid.AssuranceTimes.NotSupported | The value of AssuranceTimes is not supported. | |
| 400 | RepeatStartPrivatePool | PrivatePool has already been started. | |
| 500 | InternalError | The request processing has failed due to some unknown error, exception or failure. | |
| 500 | InvalidRegionId.NotFound | The specified RegionId does not exist. | |
| 403 | InvalidOperation.PrePaidInstanceUnsupported | Not support to modify the private pool options of prepay instances. |
完全なリストについては、「エラーコード」をご参照ください。
変更履歴
完全なリストについては、「変更履歴」をご参照ください。