查询 AgenticDB 分支连接信息
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
调试
授权信息
|
操作 |
访问级别 |
资源类型 |
条件关键字 |
关联操作 |
|
polardb:DescribeAgenticDBBranchEndpoints |
get |
*DBCluster
|
无 | 无 |
请求语法
POST HTTP/1.1
请求参数
|
名称 |
类型 |
必填 |
描述 |
示例值 |
| RegionId |
string |
是 |
地域 ID |
cn-hangzhou |
| DBClusterId |
string |
是 |
AgenticDB 集群 ID |
pagc-bp1abcdef1234567 |
| TenantId |
string |
是 |
归属 Tenant ID |
t-4b83e0da66674951 |
| ProjectId |
string |
是 |
归属 Project ID |
proj-a1b2c3d4e5f6 |
| BranchId |
string |
是 |
分支 ID |
br-7g8h9i0j1k2l |
返回参数
|
名称 |
类型 |
描述 |
示例值 |
|
object |
Schema of Response |
||
| RequestId |
string |
请求 ID |
E5F6A7B8-C9D0-1234-EFAB-567890123EFA |
| Items |
array<object> |
端点列表 |
|
|
array<object> |
端点信息 |
||
| EndpointId |
string |
端点 ID |
ep-3m4n5o6p7q8r |
| EndpointType |
string |
端点类型 |
ReadWrite |
| Address |
string |
兼容连接地址,优先返回公网,无公网时返回私网 |
10.0.1.100 |
| Port |
integer |
兼容连接端口,与 Address 对应 |
5432 |
| Database |
string |
数据库名 |
neondb |
| Account |
string |
账号名 |
cloud_admin |
| Password |
string |
密码 |
ExamplePassw0rd! |
| ConnectionString |
string |
兼容连接串,优先返回公网,无公网时返回私网 |
postgresql://cloud_admin:******@10.0.1.100:5432/neondb |
| AddressItems |
array<object> |
公网和私网连接地址列表 |
|
|
object |
网络连接地址 |
||
| NetType |
string |
网络类型,取值为 Private 或 Public |
Private |
| Address |
string |
连接地址 |
pe-cedar-cygfzprh775g.polaragentic.pre.rds.aliyuncs.com |
| Port |
integer |
端口 |
5460 |
| ConnectionString |
string |
完整 PostgreSQL 连接串 |
postgresql://cloud_admin:******@pe-cedar-cygfzprh775g.polaragentic.pre.rds.aliyuncs.com:5460/neondb |
示例
正常返回示例
JSON格式
{
"RequestId": "E5F6A7B8-C9D0-1234-EFAB-567890123EFA",
"Items": [
{
"EndpointId": "ep-3m4n5o6p7q8r",
"EndpointType": "ReadWrite",
"Address": "10.0.1.100",
"Port": 5432,
"Database": "neondb",
"Account": "cloud_admin",
"Password": "ExamplePassw0rd!",
"ConnectionString": "postgresql://cloud_admin:******@10.0.1.100:5432/neondb",
"AddressItems": [
{
"NetType": "Private",
"Address": "pe-cedar-cygfzprh775g.polaragentic.pre.rds.aliyuncs.com",
"Port": 5460,
"ConnectionString": "postgresql://cloud_admin:******@pe-cedar-cygfzprh775g.polaragentic.pre.rds.aliyuncs.com:5460/neondb"
}
]
}
]
}
错误码
访问错误中心查看更多错误码。
变更历史
更多信息,参考变更详情。