All Products
Search
Document Center

ApsaraDB for MyBase:QueryHostBaseInfoByInstance

Last Updated:Mar 01, 2024

Queries the basic information about the host on which an instance is deployed.

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
RegionIdstringNo

The region ID of the instance. For more information, see Region IDs.

cn-hangzhou
DBInstanceIdstringYes

The instance ID.

rm-bp15rszyxs4t3****

Response parameters

ParameterTypeDescriptionExample
object
RequestIdstring

The request ID.

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

The queried host and instance information.

VpcIdstring

The virtual private cloud (VPC) ID of the host on which the instance is deployed.

vpc-bp1ov7as4yvz4kxei****
Statusstring

The state of the instance.

RUNNING
ExpiredTimestring

The expiration time of the instance.

2021.07.20
ClusterNamestring

The instance type of the instance.

rds.ebmr6.26xlarge
Ipstring

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

172.22.0.***
HostNamestring

The name of the host on which the instance is deployed.

ch-bp1fgj3kt7fsb****
Enginestring

The database engine of the instance.

mysql
Rolestring

The role of the instance.

master
Portstring

The port number of the host on which the instance is deployed.

3443
EngineVersionstring

The version of the database engine.

5.7

Examples

Sample success responses

JSONformat

{
  "RequestId": "D6E068C3-25BC-455A-85FE-45F0B22E12CV",
  "HostInstanceConsoleInfos": [
    {
      "VpcId": "vpc-bp1ov7as4yvz4kxei****",
      "Status": "RUNNING",
      "ExpiredTime": "2021.07.20",
      "ClusterName": "rds.ebmr6.26xlarge",
      "Ip": " 172.22.0.***",
      "HostName": "ch-bp1fgj3kt7fsb****",
      "Engine": "mysql",
      "Role": "master",
      "Port": "3443",
      "EngineVersion": "5.7"
    }
  ]
}

Error codes

HTTP status codeError codeError messageDescription
403Permission.NotSupportYou are not authorized to perform this action.You are not authorized to perform the action.
404InvalidDBInstance.NotFoundThe specified instance does not exist or is not supported.The specified instance does not exist or is not supported.

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