Queries the information about hosts in dedicated clusters.
Debugging
Authorization information
There is currently no authorization information disclosed in the API.
Request parameters
Parameter | Type | Required | Description | Example |
---|---|---|---|---|
RegionId | string | Yes | The region ID. For more information, see Region IDs. | cn-hangzhou |
DedicatedHostGroupId | string | No | The dedicated cluster ID. You can log on to the ApsaraDB for MyBase console and go to the Dedicated Clusters page to view the dedicated cluster ID.
| dhg-872yt76ann7e**** |
ImageCategory | string | No | The image of the host. Valid values:
Server Cluster Edition.
Server Standard Edition.
Server Enterprise Edition.
Server Web Edition.
| AliLinux |
Engine | string | No | The database engine used to filter hosts. Valid values:
| MySQL |
Response parameters
Examples
Sample success responses
JSON
format
{
"RequestId": "D6E068C3-25BC-455A-85FE-45F0B22E12SD",
"DedicatedHostGroups": {
"DedicatedHostGroups": [
{
"DiskAllocateRation": 100,
"DeployType": "origin",
"CreateTime": "2021-05-07T02:00Z",
"DedicatedHostCountGroupByHostType": 2,
"Text": "mysql-host",
"DedicatedHostGroupId": " dhg-34639v1jt4y4****",
"DiskUtility": 0,
"MemUsedAmount": 0,
"MemAllocatedAmount": 0,
"CpuAllocationRatio": 200,
"MemAllocationRatio": 100,
"MemAllocateRation": 9.38,
"MemUtility": 0,
"CpuAllocatedAmount": 3,
"DedicatedHostGroupDesc": " dhg-34639v1jt4y4****",
"CpuAllocateRation": 9.38,
"InstanceNumber": 2,
"OpenPermission": "1",
"VPCId": "vpc-bp1ov7as4yvz4kxei****",
"DiskAllocatedAmount": 1024,
"HostNumber": 2,
"DiskUsedAmount": 1024,
"AllocationPolicy": "Evenly",
"Engine": "MySQL",
"DiskAllocationRatio": 200,
"BastionInstanceId": "rm-bp15rszyxs4t3****",
"HostReplacePolicy": "Auto",
"ZoneIDList": {
"ZoneIDList": [
"cn-hangzhou-f"
]
},
"Category": ""
}
]
}
}
Error codes
HTTP status code | Error code | Error message | Description |
---|---|---|---|
403 | Permission.NotSupport | You are not authorized to perform this action. | You are not authorized to perform the action. |
For a list of error codes, visit the Service error codes.