Mengkueri daftar instans yang berjalan yang cocok dengan elasticity assurance.
Deskripsi operasi
Setelah elasticity assurance kedaluwarsa, data kecocokan antara instans dan private pool yang terkait dengan elasticity assurance juga menjadi tidak valid. Jika Anda memanggil operasi ini untuk mengkueri elasticity assurance yang kedaluwarsa, hasil kosong akan dikembalikan.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
ecs:DescribeElasticityAssuranceInstances |
get |
*Semua sumber daya.
|
None | None |
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| RegionId |
string |
Yes |
ID wilayah elasticity assurance. Anda dapat memanggil DescribeRegions untuk mengkueri daftar wilayah terbaru. |
cn-hangzhou |
| MaxResults |
integer |
No |
Jumlah maksimum entri per halaman untuk kueri berhalaman. Nilai maksimum: 100. Nilai default: 10. |
10 |
| NextToken |
string |
No |
Token paginasi untuk kueri elasticity assurance. Dapatkan nilai dari hasil permintaan sebelumnya. |
caeba0bbb2be03f84eb48b699f0a4883 |
| PrivatePoolOptions.Id |
string |
Yes |
ID elasticity assurance. |
eap-bp67acfmxazb4**** |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
|||
| ElasticityAssuranceItem |
object |
||
| InstanceIdSet |
array<object> |
Daftar instans yang cocok dengan elasticity assurance. |
|
|
object |
|||
| InstanceId |
string |
ID instans. |
i-bp67acfmxazb4**** |
| MaxResults |
integer |
Jumlah maksimum entri per halaman dalam kueri berhalaman. Ini adalah nilai yang sama dengan yang ditentukan di permintaan untuk paginasi. |
10 |
| NextToken |
string |
Token paginasi untuk kueri elasticity assurance berikutnya. |
caeba0bbb2be03f84eb48b699f0a4883 |
| RequestId |
string |
ID permintaan. |
473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E |
| TotalCount |
integer |
Jumlah total entri yang cocok dengan kondisi kueri. |
2 |
Contoh
Respons sukses
JSONformat
{
"ElasticityAssuranceItem": {
"InstanceIdSet": [
{
"InstanceId": "i-bp67acfmxazb4****"
}
]
},
"MaxResults": 10,
"NextToken": "caeba0bbb2be03f84eb48b699f0a4883",
"RequestId": "473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E",
"TotalCount": 2
}
Kode kesalahan
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | MissingParameter.RegionId | The specified RegionId should not be null. | Parameter RegionId tidak boleh kosong. |
| 400 | InvalidParameter.PrivatePoolOptions.Id | The specified PrivatePoolOptions.Id is invalid. | |
| 400 | DedicatedHostNotSupported | DedicatedHost is not supported for PrivatePool. | Private pool tidak mendukung host khusus. |
| 400 | SpotNotSupported | Spot is not supported for PrivatePool. | Private pool tidak mendukung spot instans. |
| 400 | ClassicNetworkNotSupported | Classic network is not supported for PrivatePool. | Private pool tidak mendukung instans dengan jenis jaringan klasik. |
| 400 | Invalid.InstanceId | Instance does not exist. | Instans tidak cocok dengan private pool. |
| 400 | Invalid.PrivatePoolOptions.MatchCriteria | Target mode does not support this operation. | Parameter PrivatePoolOptions.MatchCriteria yang ditentukan tidak cocok dengan private pool. |
| 400 | MissingParameter.PrivatePoolOptions.Id | The specified PrivatePoolOptions.Id should not be null. | Parameter PrivatePoolOptions.Id tidak boleh kosong. |
| 400 | Invalid.PrivatePoolOptions.Id | The PrivatePool does not exist. | Private pool tidak ada. |
| 400 | Invalid.InstanceType | The InstanceType does not match the PrivatePool. | Tipe instans tidak cocok dengan private pool. |
| 400 | Invalid.InstanceChargeType | The InstanceChargeType does not match the PrivatePool. | Parameter InstanceChargeType yang ditentukan tidak valid. |
| 400 | Invalid.ZoneId | The ZoneId does not match the PrivatePool. | Zona tidak cocok dengan private pool. |
| 400 | Invalid.PrivatePoolOptions.status | The PrivatePool has been used up. | Status private pool yang ditentukan tidak valid. |
| 400 | InvalidPlatform.ValueNotSupported | The Platform does not match the PrivatePool. | Parameter Platform yang ditentukan tidak cocok dengan private pool. |
| 400 | InvalidAliUid | The PrivatePool does not belong to the user of the Instance. | Private pool bukan milik pengguna yang membuat instans. |
| 400 | MissingParameter.PackageType | The specified parameter "PackageType" can not be empty. | Parameter PackageType tidak boleh kosong. |
| 400 | MissingParameter.PrivatePoolOptions.Ids | The specified parameter "PrivatePoolOptions.Ids" can not be empty. | Parameter PrivatePoolOptions.ids yang ditentukan tidak boleh kosong. |
| 400 | MissingParameter.InstanceCpuCoreCount | The specified parameter "InstanceCpuCoreCount" can not be empty. | Parameter InstanceCpuCocount yang ditentukan tidak boleh kosong. |
| 400 | MissingParameter.InstanceAmount | The specified parameter "InstanceAmount" can not be empty. | Parameter InstanceAmount yang ditentukan tidak boleh kosong. |
| 400 | MissingParameter.InstanceCpuCoreCountOrInstanceAmount | The specified parameter "InstanceCpuCoreCount" and "InstanceAmount" must not be empty at the same time. | Parameter InstanceCpuCoreCount dan InstanceAmount tidak boleh kosong secara bersamaan. |
| 400 | Invalid.TooManyPrivatePoolOptions.Ids | Too many PrivatePoolOptions.Ids in this request. | Parameter PrivatePoolOptions.Ids melebihi batas atas. |
| 400 | Invalid.TooManyZoneIds | Too many ZoneIds in the request. | Parameter ZoneIds melebihi batas atas. |
| 400 | Invalid.TooManyInstanceTypes | Too many InstanceTypes in the request. | Parameter InstanceTypes melebihi batas atas. |
| 400 | Invalid.TooManyUnpaidPrivatePool | Too many PrivatePools create but still unpaid. | Beberapa private pool belum dibayar. |
| 400 | Invalid.InstanceCpuCoreCountOrInstanceAmount | Both InstanceCpuCoreCount and InstanceAmount are provided. | Parameter InstanceCpuCoreCount dan InstanceAmount tidak perlu ditentukan secara bersamaan. |
| 400 | Invalid.PrivatePoolOptions.Ids | The specified parameter "PrivatePoolOptions.Ids" exist invalid element Id. | ID private pool yang ditentukan tidak ada. |
| 400 | Invalid.PackageType | The specified parameter "PackageType" is invalid. | Parameter PackageType yang ditentukan tidak valid. |
| 400 | Invalid.PrivatePool.Purchase | The PrivatePool has already paid. | Private pool sudah dibayar. |
| 400 | Invalid.AssuranceTimes.NotSupported | The value of AssuranceTimes is not supported. | Nilai parameter AssuranceTimes tidak didukung. |
| 400 | RepeatStartPrivatePool | PrivatePool has already been started. | Private pool sudah dimulai. |
| 500 | InternalError | The request processing has failed due to some unknown error, exception or failure. | Terjadi error internal. Coba lagi. |
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.