Queries the branch connection information of an AgenticDB cluster.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
polardb:DescribeAgenticDBBranchEndpoints |
get |
*DBCluster
|
None | None |
Request syntax
POST HTTP/1.1
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| RegionId |
string |
Yes |
The region ID. |
cn-hangzhou |
| DBClusterId |
string |
Yes |
The ID of the AgenticDB cluster. |
pagc-bp1abcdef1234567 |
| TenantId |
string |
Yes |
The ID of the tenant to which the branch belongs. |
t-4b83e0da66674951 |
| ProjectId |
string |
Yes |
The ID of the project to which the branch belongs. |
proj-a1b2c3d4e5f6 |
| BranchId |
string |
Yes |
The branch ID. |
br-7g8h9i0j1k2l |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
Schema of Response |
||
| RequestId |
string |
The request ID. |
E5F6A7B8-C9D0-1234-EFAB-567890123EFA |
| Items |
array<object> |
The list of endpoints. |
|
|
array<object> |
The endpoint information. |
||
| EndpointId |
string |
The endpoint ID. |
ep-3m4n5o6p7q8r |
| EndpointType |
string |
The endpoint type. |
ReadWrite |
| Address |
string |
The compatible connection address. A public endpoint is returned first. If no public endpoint is available, a private endpoint is returned. |
10.0.1.100 |
| Port |
integer |
The compatible connection port that corresponds to the Address parameter. |
5432 |
| Database |
string |
The database name. |
neondb |
| Account |
string |
The account name. |
cloud_admin |
| Password |
string |
The password. |
****** |
| ConnectionString |
string |
The compatible connection string. A public connection string is returned first. If no public connection string is available, a private connection string is returned. |
postgresql://cloud_admin:******@10.0.1.100:5432/neondb |
| AddressItems |
array<object> |
The list of public and private network endpoints. |
|
|
object |
The network connectivity endpoint. |
||
| NetType |
string |
The network type. Valid values:
|
Private |
| Address |
string |
The endpoint. |
pe-cedar-cygfzprh775g.polaragentic.pre.rds.aliyuncs.com |
| Port |
integer |
The port. |
5460 |
| ConnectionString |
string |
The full PostgreSQL connection string. |
postgresql://cloud_admin:******@pe-cedar-cygfzprh775g.polaragentic.pre.rds.aliyuncs.com:5460/neondb |
Examples
Success response
JSON format
{
"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": "******",
"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"
}
]
}
]
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.