Queries the information about instances that are deployed on a host.
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 of the host. You can log on to the ApsaraDB for MyBase console to view the region ID. | cn-qingdao |
DedicatedHostId | string | Yes | The host ID. You can log on to the ApsaraDB for MyBase console and go to the Hosts page to view the host ID. | ch-bp1fgj3kt7fsb**** |
Response parameters
Examples
Sample success responses
JSON
format
{
"RequestId": "D6E068C3-25BC-455A-85FE-45F0B22ECB1F",
"HostInstanceConsoleInfos": [
{
"Status": "RUNNING",
"MaxConnIncreaseRatioValue": 1300,
"MemSize": 16,
"DiskSize": 500,
"Ip": "172.22.XX.XX",
"Port": "3443",
"EngineVersion": "5.8",
"MemoryIncreaseRatioValue": 64,
"CpuIncreaseRatioValue": 16,
"DBInstanceId": "rm-bp1m5z8002gyj****",
"Engine": "mysql",
"LevelName": "mysql.z2.medium.2",
"Role": "master",
"DBInstanceDescription": "rm-bp1m5z8002gyj****",
"CpuCores": 8,
"PerfInfo": {
"PerfIdbPio": 30,
"DiskCurr": 1000,
"MemRatio": 64,
"CpuRatio": 16
}
}
]
}
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. |
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. |
404 | HostInfo.NotFound | The host is not found. | The host is not found. |
For a list of error codes, visit the Service error codes.