Modifies the endpoint of a PolarDB edge cluster.
Operation description
This operation applies only to edge cloud clusters. Before you call this operation, you must have applied for an edge cloud cluster through MyBase or ENS infrastructure. You can call DescribeEdgeCloudRegion to query edge cloud regions and call DescribeDBClustersZonal to obtain the edge cloud cluster ID. This operation does not apply to standard PolarDB clusters.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
polardb:ModifyDBClusterEndpointZonal |
update |
*All Resource
|
None | None |
Request syntax
POST HTTP/1.1
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| DBClusterId |
string |
Yes |
The ID of the edge cloud cluster. You can call DescribeDBClustersZonal to query the ID. The IDs of standard PolarDB clusters returned by DescribeDBClusters are not supported. |
pc-************** |
| DBEndpointId |
string |
Yes |
The ID of the cluster endpoint. |
pe-**************** |
| Nodes |
string |
No |
The read-only nodes to be added to the destination endpoint. Separate multiple node IDs with commas (,). Default value: the original nodes. Note
|
pi-**************,pi-************* |
| ReadWriteMode |
string |
No |
The read/write mode. Valid values:
|
ReadWrite |
| AutoAddNewNodes |
string |
No |
Specifies whether new nodes are automatically added to the endpoint. Valid values:
Valid values:
|
Enable |
| EndpointConfig |
string |
No |
The advanced configurations of the cluster endpoint. The value is in JSON format. Currently, settings for the consistency level, transaction splitting, whether the primary database accepts read requests, and the connection pool are supported.
Note
|
{\"DistributedTransaction\":\"off\",\"ConsistLevel\":\"0\",\"LoadBalanceStrategy\":\"load\",\"MasterAcceptReads\":\"on\"} |
| DBEndpointDescription |
string |
No |
The name of the endpoint. |
test |
| SccMode |
string |
No |
Specifies whether to enable the global consistency (high-performance mode) feature for the node. Valid values: on (enable) and off (disable). Valid values:
|
off |
| PolarSccWaitTimeout |
string |
No |
The timeout period for global consistency. |
100 |
| PolarSccTimeoutAction |
string |
No |
The timeout policy for global consistency. Valid values:
|
0 |
| ClientToken |
string |
No |
The client token that is used to ensure the idempotence of the request and prevent duplicate submissions. You can generate the value of this parameter on the client side. The value must be unique across different requests and is case-sensitive. It can contain up to 64 ASCII characters. |
6000170000591aed949d0f****************** |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
Schema of Response |
{} |
|
| RequestId |
string |
The ID of the request. |
F2A9EFA7-915F-4572-8299-85A307****** |
Examples
Success response
JSON format
{
"RequestId": "F2A9EFA7-915F-4572-8299-85A307******"
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | CrossCloudOpenAPI.CallError | The DBClusterId provided does not exist in our records. pc-bp140sokqzex5sy50 | The specified DBClusterId belongs to a standard PolarDB cluster rather than an edge cloud cluster. |
| 400 | InvalidEndpointConfig.Malformed | The specified parameter EndpointConfig is not valid. | The specified EndpointConfig parameter is invalid. |
| 400 | InvalidDBEndpointId.Malformed | The specified parameter DBEndpointId is not valid. | The specified DBEndpointId parameter is invalid. |
| 400 | InvalidNodes.Malformed | The specified parameter Nodes is not valid. | The specified Nodes parameter is invalid. |
| 403 | OperationDenied.InstanceType | The operation is not permitted due to instance type. | The operation is not allowed due to the instance type |
| 404 | InvalidDBCluster.NotFound | The DBClusterId provided does not exist in our records. | The specified DBClusterId parameter does not exist in the current record. |
| 404 | EndpointStatus.NotSupport | Current endpoint status does not support this operation. | This operation is not supported while the node is in the current state. |
| 404 | InvalidDBClusterId.Malformed | The specified parameter DBClusterId is not valid. | The specified DBClusterId parameter is invalid. |
| 404 | InvalidDBClusterId.NotFound | The DBInstanceId provided does not exist in our records. | The specified DBClusterId parameter does not exist in the current record. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.