To retrieve the cluster endpoints, call DescribeEndpoints.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
clickhouse:DescribeEndpoints |
none |
*EnterpriseDBCluster
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| RegionId |
string |
No |
The region ID. |
cn-beijing |
| DBInstanceId |
string |
Yes |
The cluster ID. |
cc-xxxxx |
| ComputingGroupId |
string |
No |
The computing group ID. |
cc-*****-clickhouse |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The response parameters. |
||
| RequestId |
string |
The request ID. |
xxx-xxx-xxx |
| Data |
object |
The response data. |
|
| InstanceNetworkType |
string |
The network type of the instance. Valid values:
|
VPC |
| Endpoints |
array<object> |
The endpoints. |
|
|
array<object> |
The details of an endpoint. |
||
| NetType |
string |
The network type of the endpoint. Valid values:
|
VPC |
| Status |
string |
The status of the endpoint. |
active |
| ConnectionString |
string |
The instance connection string. |
cc-****-clickhouse.clickhouseserver.pre.rds.aliyuncs.com |
| VpcId |
string |
The VPC ID. |
vpc-uf61z**** |
| VSwitchId |
string |
The vSwitch ID. |
vsw-0xi8829**** |
| VpcInstanceId |
string |
The VPC instance ID. |
vpc-uf61z**** |
| Ports |
array<object> |
The ports. |
|
|
object |
The details of a port. |
||
| Protocol |
string |
The protocol type. Valid values:
|
HttpPort |
| Port |
integer |
The port number. The value varies based on the protocol type. For example:
|
8123 |
| IPAddress |
string |
The IP address. |
172.30.XX.XX |
| ComputingGroupId |
string |
The computing group ID. |
cc-ad321**-clickhouse |
| EndpointName |
string |
The endpoint name. |
cc-*****-clickhouse |
Examples
Success response
JSON format
{
"RequestId": "xxx-xxx-xxx",
"Data": {
"InstanceNetworkType": "VPC",
"Endpoints": [
{
"NetType": "VPC",
"Status": "active",
"ConnectionString": "cc-****-clickhouse.clickhouseserver.pre.rds.aliyuncs.com",
"VpcId": "vpc-uf61z****",
"VSwitchId": "vsw-0xi8829****",
"VpcInstanceId": "vpc-uf61z****",
"Ports": [
{
"Protocol": "HttpPort",
"Port": 8123
}
],
"IPAddress": "172.30.XX.XX",
"ComputingGroupId": "cc-ad321**-clickhouse",
"EndpointName": "cc-*****-clickhouse"
}
]
}
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 404 | InvalidDBInstanceId.NotFound | The DBInstanceId provided does not exist in our records. | The passed instance ID does not exist. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.