API ini digunakan untuk meminta daftar kelompok instance yang disediakan oleh Alibaba Cloud ECS. Dengan memanggil API ini, Anda dapat memperoleh informasi tentang kelompok instance dari berbagai generasi untuk lebih memahami sumber daya spesifikasi instance yang tersedia, yang membantu Anda memilih jenis instance yang sesuai saat membuat instance ECS.
Coba sekarang
Test
RAM authorization
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| RegionId |
string |
Yes |
ID region. Anda dapat memanggil DescribeRegions untuk meminta daftar terbaru region Alibaba Cloud. |
cn-hangzhou |
| Generation |
string |
No |
Generasi dari kelompok instance. Untuk informasi lebih lanjut, lihat Kelompok instance. Nilai yang valid:
|
ecs-5 |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
ID permintaan. |
||
| RequestId |
string |
ID permintaan. |
473469C7-AA6F-4DC5-B3DB-A3DC0DE3**** |
| InstanceTypeFamilies |
object |
||
| InstanceTypeFamily |
array<object> |
Kumpulan kelompok instance (InstanceTypeFamily). |
|
|
object |
Generasi dari kelompok instance. |
||
| Generation |
string |
The series of the instance family. |
ecs-5 |
| InstanceTypeFamilyId |
string |
The ID of the instance family. |
ecs.g6 |
Contoh
Respons sukses
JSONformat
{
"RequestId": "473469C7-AA6F-4DC5-B3DB-A3DC0DE3****",
"InstanceTypeFamilies": {
"InstanceTypeFamily": [
{
"Generation": "ecs-5",
"InstanceTypeFamilyId": "ecs.g6"
}
]
}
}
Respons error
JSONformat
{
"RequestId": "540CFF28-407A-40B5-B6A5-74Bxxxxxxxxx",
"HostId": "ecs.aliyuncs.com",
"Code": "IncompleteSignature",
"Message": "The request signature does not conform to Aliyun standards."
}
Kode kesalahan
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 404 | InvalidRegionId.NotFound | The RegionId provided does not exist in our records. |
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.