This operation modifies the properties of a PolarDB cluster endpoint. You can configure settings such as the read/write mode, automatic node addition, consistency level, transaction splitting, the connection pool, and whether the primary node accepts read requests.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
polardb:ModifyDBClusterEndpoint |
update |
*dbcluster
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| DBClusterId |
string |
Yes |
The cluster ID. |
pc-************* |
| DBEndpointId |
string |
Yes |
The ID of the cluster endpoint. |
pe-************** |
| Nodes |
string |
No |
The nodes to be added to the endpoint for read request distribution. Separate multiple node IDs with commas (,). The original nodes are used by default. Note
|
pi-**************,pi-************* |
| ReadWriteMode |
string |
No |
The read/write mode. Valid values:
|
ReadWrite |
| AutoAddNewNodes |
string |
No |
Specifies whether to automatically add new nodes to the endpoint. Valid values:
|
Enable |
| EndpointConfig |
string |
No |
The advanced configurations of the cluster endpoint in JSON format. You can set the consistency level, transaction splitting, whether the primary node accepts read requests, the connection pool, and other settings.
Note
|
{"ConsistLevel":"1","DistributedTransaction":"on","MasterAcceptReads":"off","ConnectionPersist": "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 |
| PolarSccWaitTimeout |
string |
No |
The timeout period for global consistency. |
100 |
| PolarSccTimeoutAction |
string |
No |
The policy for handling global consistency timeouts. Valid values:
|
0 |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
The request ID. |
CD3FA5F3-FAF3-44CA-AFFF-BAF869****** |
Examples
Success response
JSON format
{
"RequestId": "CD3FA5F3-FAF3-44CA-AFFF-BAF869******"
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 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.