Queries the information about host specifications.
Operation description
After a host is created, you can call this operation to query the information about the host specifications, such as the CPU resources, memory resources, CPU model, host category, and storage type.
Debugging
Authorization information
The following table shows the authorization information corresponding to the API. The authorization information can be used in the Action policy element to grant a RAM user or RAM role the permissions to call this API operation. Description:
- Operation: the value that you can use in the Action element to specify the operation on a resource.
- Access level: the access level of each operation. The levels are read, write, and list.
- Resource type: the type of the resource on which you can authorize the RAM user or the RAM role to perform the operation. Take note of the following items:
- For mandatory resource types, indicate with a prefix of * .
- If the permissions cannot be granted at the resource level,
All Resourcesis used in the Resource type column of the operation.
- Condition Key: the condition key that is defined by the cloud service.
- Associated operation: other operations that the RAM user or the RAM role must have permissions to perform to complete the operation. To complete the operation, the RAM user or the RAM role must have the permissions to perform the associated operations.
| Operation | Access level | Resource type | Condition key | Associated operation |
|---|---|---|---|---|
| cddc:DescribeHostEcsLevelInfo | get | *All Resources * |
| none |
Request parameters
| Parameter | Type | Required | Description | Example |
|---|---|---|---|---|
| DbType | string | Yes | The database engine. Valid values:
| mysql |
| RegionId | string | Yes | The region ID. For more information, see Region IDs. | cn-hangzhou |
| ZoneId | string | Yes | The zone ID. | ap-southeast-1a |
| StorageType | string | Yes | The storage type. Valid values:
| local_ssd |
| ImageCategory | string | No | The image of the host. Valid values:
| AliLinux |
Response parameters
Examples
Sample success responses
JSONformat
{
"RequestId": "395858E2-2A82-4ED7-BB93-2DB60119EF4C",
"HostEcsLevelInfos": [
{
"CddcHostType": "ram",
"Items": [
{
"NetBandWidth": 10,
"EcsClass": "",
"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. |
For a list of error codes, visit the Service error codes.
Change history
| Change time | Summary of changes | Operation |
|---|---|---|
| 2021-09-08 | The Error code has changed. The request parameters of the API has changed. The response structure of the API has changed | View Change Details |
