DescribeDBClusterEndpointsZonal - 查询边缘集群地址信息

查询PolarDB边缘集群的链接地址

调试

您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。

调试

授权信息

当前API暂无授权信息透出。

请求语法

GET  HTTP/1.1

请求参数

名称

类型

必填

描述

示例值

DBClusterId

string

集群 ID。

pc-*************

DBEndpointId

string

集群地址 ID。

pe-*************

DescribeType

string

是否需要返回 ai 节点信息。

AI

返回参数

名称

类型

描述

示例值

object

Schema of Response

RequestId

string

请求 ID。

2DC120BF-6EBA-4C63-BE99-B09F9E******

Items

array<object>

集群地址详情。

object

DBEndpointId

string

连接地址 ID。

pe-*************

PolarSccTimeoutAction

string

全局一致性超时策略。取值范围如下:

  • 0:发送该请求到主节点。

  • 2:超时降级,当全局一致性读超时后,本次查询操作会自动降级为非一致性读取,且客户端不会收到报错信息。

0

DBClusterId

string

集群 ID。

pc-bp1s826a1up******

Nodes

string

连接地址配置的节点列表。

pi-***************,pi-***************

ReadWriteMode

string

读写模式:

  • ReadWrite:可读可写(自动读写分离)。

  • ReadOnly:只读。

ReadOnly

DBEndpointDescription

string

地址名称。

test

PolarSccWaitTimeout

string

全局一致性超时时间。

100

NodeWithRoles

string

目标连接地址下各节点的角色名称,其中主节点为 Writer;由于一个连接地址下可加入多个只读节点,因此每个只读节点的角色名称后会加上数字作为区分,如 Reader1、Reader2,以此类推。

Reader1

AutoAddNewNodes

string

新节点是否自动加入默认集群地址:

  • Enable。

  • Disable。

Enable

EndpointType

string

集群地址类型:

  • Cluster:默认集群地址。

  • Primary:主地址。

  • Custom:自定义集群地址。

Custom

AddressItems

array<object>

连接串信息。

object

DashboardUsed

boolean

是否为 PolarDB Search 节点 Dashboard 地址

  • Ture:是。

  • False:否。

True

PrivateZoneConnectionString

string

绑定的私有域名。

***.***.**.com

VPCId

string

专有网络 ID。

vpc-***************

VSwitchId

string

虚拟交换机 ID。

vsw-************

Port

string

端口。

1521

VpcInstanceId

string

VPC 实例 ID。

pe-*************

ConnectionString

string

连接串。

********.rwlb.polardb-pg-public.rds.aliyuncs.com

IPAddress

string

IP 地址。

192.***.***.***

NetType

string

网络类型,取值范围如下:

  • Public:公网。

  • Private:私网。

Private

SccMode

string

节点是否开启全局一致性(高性能模式)功能。取值范围如下:

  • on:开启。

  • off:关闭。

on

EndpointConfig

string

集群地址的高级配置。

  • DistributedTransaction:事务拆分状态,取值范围如下:

    • on:事务拆分已开启

    • off:事务拆分已关闭

  • ConsistLevel:会话一致性级别,取值范围如下:

    • 0:最终一致性

    • 1:会话一致性。

    • 2:全局一致性

  • LoadBalanceStrategy:负载均衡策略,基于负载的自动调度,取值固定为 load

  • MasterAcceptReads:主库是否接受读,取值范围如下:

    • on:主库接受读

    • off:主库不接受读

{\"DistributedTransaction\":\"off\",\"ConsistLevel\":\"0\",\"LoadBalanceStrategy\":\"load\",\"MasterAcceptReads\":\"on\"}

示例

正常返回示例

JSON格式

{
  "RequestId": "2DC120BF-6EBA-4C63-BE99-B09F9E******",
  "Items": [
    {
      "DBEndpointId": "pe-*************",
      "PolarSccTimeoutAction": "0",
      "DBClusterId": "pc-bp1s826a1up******",
      "Nodes": "pi-***************,pi-***************",
      "ReadWriteMode": "ReadOnly",
      "DBEndpointDescription": "test",
      "PolarSccWaitTimeout": "100",
      "NodeWithRoles": "Reader1",
      "AutoAddNewNodes": "Enable",
      "EndpointType": "Custom",
      "AddressItems": [
        {
          "DashboardUsed": true,
          "PrivateZoneConnectionString": "***.***.**.com",
          "VPCId": "vpc-***************",
          "VSwitchId": "vsw-************",
          "Port": "1521",
          "VpcInstanceId": "pe-*************",
          "ConnectionString": "********.rwlb.polardb-pg-public.rds.aliyuncs.com",
          "IPAddress": "192.***.***.***",
          "NetType": "Private"
        }
      ],
      "SccMode": "on",
      "EndpointConfig": "{\\\"DistributedTransaction\\\":\\\"off\\\",\\\"ConsistLevel\\\":\\\"0\\\",\\\"LoadBalanceStrategy\\\":\\\"load\\\",\\\"MasterAcceptReads\\\":\\\"on\\\"}"
    }
  ]
}

错误码

HTTP status code

错误码

错误信息

描述

404 InvalidDBCluster.NotFound The DBClusterId provided does not exist in our records. 当前的记录中不存在提供的DBClusterId。
404 InvalidDBClusterId.NotFound The DBClusterId provided does not exist in our records. 当前的记录中不存在提供的 DBClusterId。
404 InvalidDBClusterId.Malformed The specified parameter DBClusterId is not valid. 指定的参数DBClusterId无效

访问错误中心查看更多错误码。

变更历史

更多信息,参考变更详情