Elastic Compute Service (ECS) インスタンスが一致するプライベートプールに関する情報をクエリします。
操作説明
今すぐお試しください
テスト
RAM 認証
|
アクション |
アクセスレベル |
リソースタイプ |
条件キー |
依存アクション |
|
ecs:DescribeInstanceAttachmentAttributes |
get |
*Instance
|
なし | なし |
リクエストパラメーター
|
パラメーター |
型 |
必須 / 任意 |
説明 |
例 |
| RegionId |
string |
必須 |
弾力性保証のリージョン ID。`DescribeRegions` 操作を呼び出して、最新のリージョンリストをクエリできます。詳細については、「DescribeRegions」をご参照ください。 |
cn-hangzhou |
| InstanceIds |
string |
必須 |
インスタンスの ID。値は、最大 100 個のインスタンス ID で構成される JSON 配列です。ID はコンマ (,) で区切ります。 |
["i-bp67acfmxazb4****", "i-bp67acfmxazb5****", "i-bp67acfmxazb6****"] |
| PageNumber |
integer |
任意 |
ページ番号。 ページは 1 から始まります。 デフォルト値:1 |
1 |
| PageSize |
integer |
任意 |
1 ページあたりのエントリ数。 有効な値:1~100 デフォルト値:10 |
10 |
レスポンスフィールド
|
フィールド |
型 |
説明 |
例 |
|
object |
|||
| PageSize |
integer |
1 ページあたりのエントリ数。 |
10 |
| RequestId |
string |
リクエスト ID。 |
473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E |
| PageNumber |
integer |
ページ番号。 |
1 |
| TotalCount |
integer |
返されるエントリの総数。 |
1 |
| Instances |
object |
||
| Instance |
array<object> |
プライベートプールとインスタンスの関連付けに関する情報。 |
|
|
object |
プライベートプールとインスタンスの関連付けに関する情報。 |
||
| InstanceId |
string |
インスタンスの ID。 |
i-bp67acfmxazb4**** |
| PrivatePoolOptionsMatchCriteria |
string |
プライベートプールの一致モード。有効な値:
|
Open |
| PrivatePoolOptionsId |
string |
プライベートプールの ID。`PrivatePoolOptionsMatchCriteria` の値が `Open` の場合、PrivatePoolOptionsId の値はインスタンスに自動的に一致するプライベートプールの ID です。 |
eap-bp67acfmxazb4**** |
例
成功レスポンス
JSONJSON
{
"PageSize": 10,
"RequestId": "473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E",
"PageNumber": 1,
"TotalCount": 1,
"Instances": {
"Instance": [
{
"InstanceId": "i-bp67acfmxazb4****",
"PrivatePoolOptionsMatchCriteria": "Open",
"PrivatePoolOptionsId": "eap-bp67acfmxazb4****"
}
]
}
}
エラーコード
|
HTTP ステータスコード |
エラーコード |
エラーメッセージ |
説明 |
|---|---|---|---|
| 400 | MissingParameter.RegionId | The specified RegionId should not be null. | |
| 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.status | The PrivatePool has been used up. | |
| 400 | InvalidPlatform.ValueNotSupported | The Platform does not match the PrivatePool. | |
| 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 | InvalidParameter | Invalid parameters. | |
| 500 | InternalError | The request processing has failed due to some unknown error, exception or failure. | |
| 403 | InvalidParameter.TooManyInstanceIds | Instance ids cannot be more than 100. | |
| 403 | Abs.InvalidInstanceIds.MalFormed | The specified InstanceIds is not valid. | |
| 404 | InvalidInstanceIds.NotFound | The specified InstanceIds does not exist. |
完全なリストについては、「エラーコード」をご参照ください。
変更履歴
完全なリストについては、「変更履歴」をご参照ください。