调用DescribeEndpoints接口查询集群的访问地址。
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
调试
授权信息
|
操作 |
访问级别 |
资源类型 |
条件关键字 |
关联操作 |
|
clickhouse:DescribeEndpoints |
none |
*EnterpriseDBCluster
|
无 | 无 |
请求参数
|
名称 |
类型 |
必填 |
描述 |
示例值 |
| RegionId |
string |
否 |
地域 ID。 |
cn-beijing |
| DBInstanceId |
string |
是 |
集群 ID。 |
cc-xxxxx |
返回参数
|
名称 |
类型 |
描述 |
示例值 |
|
object |
返回参数详情。 |
||
| RequestId |
string |
请求 ID。 |
xxx-xxx-xxx |
| Data |
object |
返回结果。 |
|
| InstanceNetworkType |
string |
实例的网络类型,取值:
|
VPC |
| Endpoints |
array<object> |
Endpoint 详细信息列表。 |
|
|
array<object> |
Endpoint 详细信息。 |
||
| NetType |
string |
连接地址的网络类型,取值:
|
VPC |
| Status |
string |
状态。 |
active |
| ConnectionString |
string |
实例连接地址 |
cc-****-clickhouse.clickhouseserver.pre.rds.aliyuncs.com |
| VpcId |
string |
VPC ID。 |
vpc-uf61z**** |
| VSwitchId |
string |
交换机 ID。 |
vsw-0xi8829**** |
| VpcInstanceId |
string |
VPC 实例 ID。 |
vpc-uf61z**** |
| Ports |
array<object> |
端口详细信息列表。 |
|
|
object |
端口详细信息。 |
||
| Protocol |
string |
协议类型。取值范围:
|
HttpPort |
| Port |
integer |
访问端口。取值范围:
|
8123 |
| IPAddress |
string |
IP 地址。 |
172.30.XX.XX |
| ComputingGroupId |
string |
cc-ad321**-clickhouse |
示例
正常返回示例
JSON格式
{
"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"
}
]
}
}
错误码
|
HTTP status code |
错误码 |
错误信息 |
描述 |
|---|---|---|---|
| 404 | InvalidDBInstanceId.NotFound | The DBInstanceId provided does not exist in our records. | 传入的实例ID不存在。 |
访问错误中心查看更多错误码。
变更历史
更多信息,参考变更详情。