Menanyakan informasi private pool yang cocok dengan sebuah instance, seperti mode pencocokan dan ID private pool.
Deskripsi operasi
Deskripsi
Private pool dihasilkan setelah layanan jaminan elastisitas atau layanan reservasi kapasitas dibuat, dan dikaitkan dengan informasi instance yang cocok dengan private pool. Anda dapat mengatur private pool saat membuat instance, dan instance akan dicocokkan dengan layanan jaminan elastisitas atau layanan reservasi kapasitas.
Ketika private pool menjadi tidak valid, data asosiasi pencocokan antara instance dan private pool juga menjadi tidak valid. Dalam hal ini, ketika Anda memanggil operasi ini, informasi private pool yang dikembalikan kosong.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
ecs:DescribeInstanceAttachmentAttributes |
get |
*Instance
|
None | None |
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| RegionId |
string |
Yes |
ID region tempat layanan jaminan elastisitas berada. Anda dapat memanggil DescribeRegions untuk menanyakan daftar terbaru region Alibaba Cloud. |
cn-hangzhou |
| InstanceIds |
string |
Yes |
ID instance. Nilainya dapat berupa array JSON yang terdiri dari beberapa ID instance. Maksimal 100 ID didukung. Pisahkan beberapa ID dengan koma (,). |
["i-bp67acfmxazb4****", "i-bp67acfmxazb5****", "i-bp67acfmxazb6****"] |
| PageNumber |
integer |
No |
Nomor halaman dari daftar status instance. Nilai minimum: 1. Nilai default: 1. |
1 |
| PageSize |
integer |
No |
Jumlah entri per halaman yang diatur untuk kueri berhalaman. Nilai maksimum: 100. Nilai default: 10. |
10 |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
|||
| PageSize |
integer |
Jumlah entri per halaman yang diatur untuk kueri berhalaman. |
10 |
| RequestId |
string |
ID permintaan. |
473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E |
| PageNumber |
integer |
Nomor halaman dari daftar status instance. |
1 |
| TotalCount |
integer |
Jumlah record yang memenuhi kondisi kueri. |
1 |
| Instances |
object |
||
| Instance |
array<object> |
Kumpulan informasi private pool yang cocok dengan instance. |
|
|
object |
Informasi private pool yang cocok dengan sebuah instance. |
||
| InstanceId |
string |
The ID of the instance. |
i-bp67acfmxazb4**** |
| PrivatePoolOptionsMatchCriteria |
string |
The match mode of the private pool. Valid values:
|
Open |
| PrivatePoolOptionsId |
string |
The ID of the private pool. If the value of |
eap-bp67acfmxazb4**** |
Contoh
Respons sukses
JSONformat
{
"PageSize": 10,
"RequestId": "473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E",
"PageNumber": 1,
"TotalCount": 1,
"Instances": {
"Instance": [
{
"InstanceId": "i-bp67acfmxazb4****",
"PrivatePoolOptionsMatchCriteria": "Open",
"PrivatePoolOptionsId": "eap-bp67acfmxazb4****"
}
]
}
}
Kode kesalahan
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 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. |
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.