Queries the details of host specifications.
Operation description
After you add a host, you can view the details of the host specifications, including the CPU, memory, processor model, host type, and host storage type.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
cddc:DescribeHostEcsLevelInfo |
get |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| DbType |
string |
Yes |
The database engine type. Valid values:
|
mysql |
| RegionId |
string |
Yes |
The region ID. You can view the region ID in Regions and zones. |
cn-hangzhou |
| ZoneId |
string |
Yes |
The zone ID. |
ap-southeast-1a |
| StorageType |
string |
Yes |
The instance storage type. Valid values:
|
local_ssd |
| ImageCategory |
string |
No |
The host image. Valid values:
|
AliLinux |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
The request ID. |
395858E2-2A82-4ED7-BB93-2DB60119EF4C |
| HostEcsLevelInfos |
array<object> |
The list of ECS host information. |
|
|
array<object> |
|||
| CddcHostType |
string |
The host type. Valid values:
|
ram |
| Items |
array<object> |
The details of the host specifications. |
|
|
object |
|||
| NetBandWidth |
number |
The internal network bandwidth. Unit: Gbit/s. |
10 |
| EcsClass |
string |
The instance family. |
General-purpose g6 |
| RdsClassCode |
string |
The ApsaraDB RDS instance type. |
mssql.cluster.host.g2xlarge |
| Cpu |
integer |
The CPU of the host. |
24 |
| CpuFrequency |
string |
The processor frequency. Unit: GHz. |
2.5 GHz/3.2 GHz |
| StorageIops |
integer |
The storage IOPS. Unit: 10,000. |
5 |
| CloudStorageBandwidth |
number |
The cloud disk bandwidth. Unit: Gbit/s. |
4 |
| EcsClassCode |
string |
The ECS instance type. |
ecs.g6.2xlarge |
| IsCloudDisk |
integer |
Indicates whether the disk is a cloud disk. |
1 |
| Memory |
integer |
The memory size. Unit: GB. |
192 |
| NetPackage |
integer |
The internal network packet forwarding rate. Unit: 10,000 PPS. |
150 |
| CpuVersion |
string |
The processor model. |
Intel Xeon(Cascade Lake) Platinum 8269CY |
| LocalStorage |
string |
The local storage. |
7 |
| Description |
string |
The name of the host. |
testxxx |
Examples
Success response
JSON format
{
"RequestId": "395858E2-2A82-4ED7-BB93-2DB60119EF4C",
"HostEcsLevelInfos": [
{
"CddcHostType": "ram",
"Items": [
{
"NetBandWidth": 10,
"EcsClass": "通用型 g6",
"RdsClassCode": "mssql.cluster.host.g2xlarge\t",
"Cpu": 24,
"CpuFrequency": "2.5 GHz/3.2 GHz",
"StorageIops": 5,
"CloudStorageBandwidth": 4,
"EcsClassCode": "ecs.g6.2xlarge\t",
"IsCloudDisk": 1,
"Memory": 192,
"NetPackage": 150,
"CpuVersion": "Intel Xeon(Cascade Lake) Platinum 8269CY\t",
"LocalStorage": "7",
"Description": "testxxx"
}
]
}
]
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | InvalidAction | The specified action is not valid. | The specified action is not valid. |
| 403 | Permission.NotSupport | You are not authorized to perform this action. | You are not authorized to perform the action. |
| 403 | Forbidden.RAM | User not authorized to operate on the specified resource, or this API does not support RAM. | The user is not authorized to operate on the specified resource. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.