Modifies the cluster endpoint attributes of a PolarDB cluster, including the read/write mode, whether new nodes are automatically added to the endpoint, consistency level, transaction splitting, whether the primary node accepts read requests, and connection pooling.
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 cluster endpoint ID. |
pe-************** |
| Nodes |
string |
No |
The read load nodes to add to the target endpoint. Separate multiple nodes with commas (,). Default value: the existing 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 configuration of the cluster endpoint in JSON format. You can configure the consistency level, transaction splitting, whether the primary node accepts read requests, connection pooling, 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 (performance schema) feature for the node. Valid values:
Valid values:
|
on |
| PolarSccWaitTimeout |
string |
No |
The timeout period for global consistency. |
100 |
| PolarSccTimeoutAction |
string |
No |
The timeout policy for global consistency. 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.