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
There is currently no authorization information disclosed in the API.
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
JSON
format
{
"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 | see changesets | ||||||||||||||||||||
|