You can call this operation to query the network information of a cluster.

Request parameters

Parameter Type Required Description
Action String Yes The operation that you want to perform. Set the value to

DescribeDBClusterNetInfoItems.

DBClusterId String Yes The ID of the cluster.

Response parameters

Parameter Type Description
<Common response parameters> - For more information, see Common parameters.
RequestId String The ID of the request.
NetInfoItems List<NetInfoItem> The list of clusters.

NetInfoItem

Parameter Type Description
ConnectionString String The endpoint of the cluster.
IPAddress String The IP address of the cluster.
Port String The port number of the cluster.
NetType String The network type of the cluster. Valid values:
  • Public
  • VPC
VpcId String The ID of the virtual private cloud (VPC).
VSwitchId String The ID of the vSwitch.

Examples

Sample requests

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

Sample success responses

XML format

<DescribeDBClusterNetInfoResponse>  
    <NetInfoItems>
        <NetInfoItem>
            <Port>3306</Port>
            <ConnectionString>cc-bp108z124a8o7420890650.ads.aliyuncs.com</ConnectionString>
            <VpcId>vpc-bp10tr8k9qasioatym6zo</VpcId>
            <IPAddress>10.255.234.251</IPAddress>
            <NetType>VPC</NetType>
            <VSwitchId>vsw-bp1n874li1t5y57wi3njj</VSwitchId>
        </NetInfoItem>
    </NetInfoItems>
    <ClusterNetworkType>VPC</ClusterNetworkType>
    <RequestId>9A23C87D-87DF-4DA0-A50E-CB13F4F7923D</RequestId>
</DescribeDBClusterNetInfoResponse>

JSON format

{
  "NetInfoItems": {
    "NetInfoItem": [
      {
        "Port": "3306",
        "ConnectionString": "cc-bp108z124a8o7420890650.ads.aliyuncs.com",
        "VpcId": "vpc-bp10tr8k9qasioatym6zo",
        "IPAddress": "10.255.234.251",
        "NetType": "VPC",
        "VSwitchId": "vsw-bp1n874li1t5y57wi3njj"
      }
    ]
  },
  "ClusterNetworkType": "VPC",
  "RequestId": "9A23C87D-87DF-4DA0-A50E-CB13F4F7923D"
}