Modifies the connection string for an edge cluster for PolarDB on ENS.
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.1Request 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 read-only nodes to add to the endpoint. Separate multiple node IDs with commas (,). If you do not specify this parameter, the original nodes are retained. Note
| pi-**************,pi-************* |
ReadWriteMode | string | No | The read/write mode. Valid values:
| ReadWrite |
AutoAddNewNodes | string | No | Specifies whether to automatically add new nodes to this endpoint. Valid values:
| Enable |
EndpointConfig | string | No | The advanced configurations of the cluster endpoint, which are specified in the JSON format. You can set the consistency level, transaction splitting, whether the primary node accepts read requests, the connection pool, and more.
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:
| OFF |
PolarSccWaitTimeout | string | No | The timeout period for global consistency. | 100 |
PolarSccTimeoutAction | string | No | The policy for a global consistency timeout. Valid values:
| 0 |
ClientToken | string | No | A client token to ensure the idempotence of the request. The client generates the value, but you must make sure that the value is unique among different requests. The token is case-sensitive and can contain up to 64 ASCII characters. | 6000170000591aed949d0f****************** |
Response elements
Element | Type | Description | Example |
object | |||
RequestId | string | The request ID. | 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 | 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.