All Products
Search
Document Center

ApsaraDB for MyBase:QueryHostInstanceConsoleInfo

Last Updated:Mar 01, 2024

Queries the information about instances that are deployed on a host.

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer.

Authorization information

There is currently no authorization information disclosed in the API.

Request parameters

ParameterTypeRequiredDescriptionExample
RegionIdstringYes

The region ID of the host. You can log on to the ApsaraDB for MyBase console to view the region ID.

cn-qingdao
DedicatedHostIdstringYes

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

ParameterTypeDescriptionExample
object
RequestIdstring

The request ID.

D6E068C3-25BC-455A-85FE-45F0B22ECB1F
HostInstanceConsoleInfosobject []

The queried instances.

Statusstring

The state of the instance.

RUNNING
MaxConnIncreaseRatioValueinteger

The maximum number of connections to the instance.

1300
MemSizeinteger

The memory size of the instance. Unit: GB.

16
DiskSizeinteger

The storage capacity of the instance. Unit: GB.

500
Ipstring

The IP address of the host on which the instance is deployed.

172.22.XX.XX
Portstring

The port number of the host.

3443
EngineVersionstring

The version of the database engine.

5.8
MemoryIncreaseRatioValueinteger

The maximum memory size of the instance.

64
CpuIncreaseRatioValueinteger

The maximum number of CPU cores of the instance.

16
DBInstanceIdstring

The instance ID.

rm-bp1m5z8002gyj****
Enginestring

The database engine of the instance.

mysql
LevelNamestring

The instance type of the instance.

mysql.z2.medium.2
Rolestring

The role of the instance.

master
DBInstanceDescriptionstring

The description of the instance.

rm-bp1m5z8002gyj****
CpuCoresinteger

The number of CPU cores of the instance.

8
PerfInfoobject

The performance information of the host on which the instance is deployed.

PerfIdbPiofloat

The number of physical I/O operations performed on the host.

30
DiskCurrfloat

The disk storage of the host. Unit: GB.

1000
MemRatiofloat

The memory size of the host. Unit: GB.

64
CpuRatiofloat

The number of CPU cores of the host.

16

Examples

Sample success responses

JSONformat

{
  "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 codeError codeError messageDescription
403Permission.NotSupportYou are not authorized to perform this action.You are not authorized to perform the action.
403Forbidden.RAMUser 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.
404HostInfo.NotFoundThe host is not found.The host is not found.

For a list of error codes, visit the Service error codes.