Queries the endpoints of an edge cluster for PolarDB on ENS.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
polardb:DescribeDBClusterEndpointsZonal |
get |
*All Resource
|
None | None |
Request syntax
GET HTTP/1.1
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| DBClusterId |
string |
Yes |
The cluster ID. |
pc-************* |
| DBEndpointId |
string |
No |
The cluster endpoint ID. |
pe-************* |
| DescribeType |
string |
No |
Specifies whether to return information about AI nodes. |
AI |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
The request ID. |
2DC120BF-6EBA-4C63-BE99-B09F9E****** |
| Items |
array<object> |
The details of the cluster endpoints. |
|
|
array<object> |
|||
| DBEndpointId |
string |
The endpoint ID. |
pe-************* |
| PolarSccTimeoutAction |
string |
The policy for global consistency timeout. Valid values:
|
0 |
| DBClusterId |
string |
The cluster ID. |
pc-bp1s826a1up****** |
| Nodes |
string |
The list of nodes that are configured for the endpoint. |
pi-***************,pi-*************** |
| ReadWriteMode |
string |
The read/write mode. Valid values:
|
ReadOnly |
| DBEndpointDescription |
string |
The name of the endpoint. |
test |
| PolarSccWaitTimeout |
string |
The timeout period for global consistency. |
100 |
| NodeWithRoles |
string |
The role of each node in the endpoint. The primary node has the Writer role. Because multiple read-only nodes can be added to an endpoint, each read-only node is assigned a role name suffixed with a number, such as Reader1 and Reader2. |
Reader1 |
| AutoAddNewNodes |
string |
Specifies whether new nodes are automatically added to the default cluster endpoint. Valid values:
|
Enable |
| EndpointType |
string |
The type of the cluster endpoint. Valid values:
|
Custom |
| AddressItems |
array<object> |
The connection string information. |
|
|
object |
|||
| DashboardUsed |
boolean |
Specifies whether the endpoint is the dashboard endpoint of a PolarDB search node. Valid values:
|
True |
| PrivateZoneConnectionString |
string |
The private domain name that is bound to the endpoint. |
***.***.**.com |
| VPCId |
string |
The ID of the virtual private cloud (VPC). |
vpc-*************** |
| VSwitchId |
string |
The virtual switch ID. |
vsw-************ |
| Port |
string |
The port number. |
1521 |
| VpcInstanceId |
string |
The VPC instance ID. |
pe-************* |
| ConnectionString |
string |
The connection string. |
********.rwlb.polardb-pg-public.rds.aliyuncs.com |
| IPAddress |
string |
The IP address. |
192.***.***.*** |
| NetType |
string |
The network type. Valid values:
|
Private |
| SccMode |
string |
Specifies whether global consistency (high-performance mode) is enabled for the node. Valid values:
|
on |
| EndpointConfig |
string |
The advanced configurations of the cluster endpoint.
|
{\"DistributedTransaction\":\"off\",\"ConsistLevel\":\"0\",\"LoadBalanceStrategy\":\"load\",\"MasterAcceptReads\":\"on\"} |
Examples
Success response
JSON format
{
"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\\\"}"
}
]
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 404 | InvalidDBCluster.NotFound | The DBClusterId provided does not exist in our records. | The specified DBClusterId parameter does not exist in the current record. |
| 404 | InvalidDBClusterId.NotFound | The DBClusterId provided does not exist in our records. | The specified DBClusterId parameter does not exist in the current record. |
| 404 | InvalidDBClusterId.Malformed | The specified parameter DBClusterId is not valid. | The specified DBClusterId parameter is invalid. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.