Queries the network information for a specified ApsaraDB for ClickHouse cluster.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
clickhouse:DescribeDBClusterNetInfoItems |
get |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| DBClusterId |
string |
Yes |
The cluster ID. |
cc-bp1qx68m06981**** |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| NetInfoItems |
object |
||
| NetInfoItem |
array<object> |
A list of network information. |
|
|
object |
A list of network information. |
||
| VpcId |
string |
The VPC ID. Note
This parameter is empty if the network type of the endpoint is `Public`. |
vpc-bp175iuvg8nxqraf2**** |
| VSwitchId |
string |
The vSwitch ID. Note
This parameter is empty if the network type of the endpoint is `Public`. |
vsw-bp1gzt31twhlo0sa5**** |
| ConnectionString |
string |
The database endpoint. |
cc-bp1554t789i8e****.clickhouse.ads.aliyuncs.com |
| JdbcPort |
string |
The Java Database Connectivity (JDBC) port number. |
3306 |
| NetType |
string |
The network type of the endpoint. Valid values:
|
VPC |
| HttpPort |
string |
The HTTP port number. |
8123 |
| IPAddress |
string |
The IP address. |
10.255.234.251 |
| HttpsPort |
string |
The HTTPS port number. |
8443 |
| MySQLPort |
string |
The MySQL port number. |
9004 |
| ClusterNetworkType |
string |
The network type. Only VPC is supported. |
VPC |
| RequestId |
string |
The request ID. |
9A23C87D-87DF-4DA0-A50E-CB13F4F7923D |
| EnableSLB |
boolean |
Indicates whether Server Load Balancer (SLB) is enabled in the VPC. Valid values:
|
true |
Examples
Success response
JSON format
{
"NetInfoItems": {
"NetInfoItem": [
{
"VpcId": "vpc-bp175iuvg8nxqraf2****",
"VSwitchId": "vsw-bp1gzt31twhlo0sa5****",
"ConnectionString": "cc-bp1554t789i8e****.clickhouse.ads.aliyuncs.com",
"JdbcPort": "3306",
"NetType": "VPC",
"HttpPort": "8123",
"IPAddress": "10.255.234.251",
"HttpsPort": "8443",
"MySQLPort": "9004"
}
]
},
"ClusterNetworkType": "VPC",
"RequestId": "9A23C87D-87DF-4DA0-A50E-CB13F4F7923D",
"EnableSLB": true
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 404 | InvalidDBCluster.NotFound | The DBClusterId provided does not exist in our records. | The DBClusterId provided does not exist in our records. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.