You can call this operation to query the network information of an AnalyticDB for MySQL cluster.


OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer. OpenAPI Explorer dynamically generates the sample code of the operation for different SDKs.

Request parameters

Parameter Type Required Example Description
Action String Yes DescribeDBClusterNetInfo

The operation that you want to perform. Set the value to DescribeDBClusterNetInfo.

DBClusterId String Yes am-bp1xxxxxxxx47

The ID of the cluster.

Response parameters

Parameter Type Example Description
ClusterNetworkType String VPC

The network type of the cluster.

Items Array of Address

The list of clusters.

ConnectionString String

The connection string of the cluster.

IPAddress String

The IP address.

NetType String VPC

The network type of the endpoint. Valid values:

  • Public: the Internet
  • VPC
Port String 3306

The port for connections to the cluster.

VPCId String vpc-xxxxxxxxx

The ID of the VPC to which created clusters belong.

VSwitchId String vsw-xxxxxx

The ID of the vSwitch.

RequestId String 1AD222E9-E606-4A42-BF6D-8A4442913CEF

The ID of the request.


Sample requests

http(s)://[Endpoint]/? Action=DescribeDBClusterNetInfo
&<Common request parameters>

Sample success responses

XML format


JSON format

    "ClusterNetworkType": "VPC",
    "RequestId": "1AD222E9-E606-4A42-BF6D-8A4442913CEF",
    "Items": {
        "Address": {
            "VPCId": "vpc-xxxxxxxxx",
            "Port": 3306,
            "VSwitchId": "vsw-xxxxxx",
            "ConnectionString": "",
            "IPAddress": "",
            "NetType": "VPC"

Error codes

HttpCode Error code Error message Description
404 InvalidDBCluster.NotFound The DBClusterId provided does not exist in our records. The error message returned because the specified cluster ID does not exist. Check whether you specify the cluster ID value correctly.

For a list of error codes, visit the API Error Center.