All Products
Search
Document Center

PolarDB:ModifyDBClusterEndpointZonal

Last Updated:Dec 03, 2026

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

Try this API in OpenAPI Explorer, no manual signing needed. Successful calls auto-generate SDK code matching your parameters. Download it with built-in credential security for local usage.

Test

RAM authorization

The table below describes the authorization required to call this API. You can define it in a Resource Access Management (RAM) policy. The table's columns are detailed below:

  • Action: The actions can be used in the Action element of RAM permission policy statements to grant permissions to perform the operation.

  • API: The API that you can call to perform the action.

  • Access level: The predefined level of access granted for each API. Valid values: create, list, get, update, and delete.

  • Resource type: The type of the resource that supports authorization to perform the action. It indicates if the action supports resource-level permission. The specified resource must be compatible with the action. Otherwise, the policy will be ineffective.

    • For APIs with resource-level permissions, required resource types are marked with an asterisk (*). Specify the corresponding Alibaba Cloud Resource Name (ARN) in the Resource element of the policy.

    • For APIs without resource-level permissions, it is shown as All Resources. Use an asterisk (*) in the Resource element of the policy.

  • Condition key: The condition keys defined by the service. The key allows for granular control, applying to either actions alone or actions associated with specific resources. In addition to service-specific condition keys, Alibaba Cloud provides a set of common condition keys applicable across all RAM-supported services.

  • Dependent action: The dependent actions required to run the action. To complete the action, the RAM user or the RAM role must have the permissions to perform all dependent actions.

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
  • For PolarDB for MySQL, you must specify node IDs.

  • For PolarDB for PostgreSQL and PolarDB for PostgreSQL (Compatible with Oracle), you must specify node role names, such as Writer,Reader1,Reader2.

  • If ReadWriteMode is set to ReadOnly, you can add only one node. However, if this node fails, the endpoint may be unavailable for up to one hour. Do not use this configuration in production environments. Select at least two nodes to improve availability.

  • If ReadWriteMode is set to ReadWrite, select at least two nodes. * For PolarDB for MySQL, you can select any two nodes. If both nodes are read-only nodes, write requests are forwarded to the primary node. * For PolarDB for PostgreSQL and PolarDB for PostgreSQL (Compatible with Oracle), the primary node must be included.

pi-**************,pi-*************

ReadWriteMode

string

No

The read/write mode. Valid values:

  • ReadWrite: Read and write (automatic read/write splitting).

  • ReadOnly: Read-only.

ReadWrite

AutoAddNewNodes

string

No

Specifies whether new nodes are automatically added to the endpoint. Valid values:

  • Enable: Yes.

  • Disable: No (default).

Valid values:

  • Enable :

    New nodes are automatically added to the endpoint.

  • Disable :

    New nodes are not automatically added to the endpoint.

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.

  • Settings for the load balancing policy. Format: {"LoadBalancePolicy":"Load balancing policy"}. Valid values:

    • 0: Load balancing based on the number of connections (default).

    • 1: Load balancing based on the number of active requests.

  • Settings for whether the primary database accepts read requests. Format: {"MasterAcceptReads":"Whether the primary database accepts read requests"}. Valid values:

    • on: The primary database accepts read requests (default).

    • off: Offload reads from primary node.

  • Settings for transaction splitting. Format: {"DistributedTransaction":"Transaction splitting"}. Valid values:

    • on: Enable transaction splitting (default).

    • off: Shutdown transaction splitting.

  • Settings for the consistency level. Format: {"ConsistLevel":"Consistency level"}. Valid values:

    • 0: Eventual consistency (weak).

    • 1: Session consistency (medium) (default).

    • 2: Global consistency (strong).

  • Settings for the timeout period for global consistency reads. Format: {"ConsistTimeout":"Timeout period for global consistency reads"}. Valid values: 0 to 60000. Default value: 20. Unit: milliseconds.

  • Settings for the timeout period for session consistency reads. Format: {"ConsistSessionTimeout":"Timeout period for session consistency reads"}. Valid values: 0 to 60000. Default value: 0. Unit: milliseconds.

  • Settings for the timeout policy for global (or session) consistency reads. Format: {"ConsistTimeoutAction":"Timeout policy for global consistency reads"}. Valid values:

    • 0: Forward read requests to the primary node (default).

    • 1: The proxy returns the error message "wait replication complete timeout, please retry" to the application.

  • Settings for the connection pool. Format: {"ConnectionPersist":"Connection pool"}. Valid values:

    • off: Shutdown the connection pool (default).

    • Session: Enable session-level connection pooling.

    • Transaction: Enable transaction-level connection pooling.

  • Settings for parallel query. Format: {"MaxParallelDegree":"Parallel query"}. Valid values:

    • on: Enable parallel query.

    • off: Shutdown parallel query (default).

  • Settings for automatic request distribution among row store and column store nodes. Format: {"EnableHtapImci":"Automatic request distribution among row store and column store nodes"}. Valid values:

    • on: Enable the feature for automatic request distribution among row store and column store nodes.

    • off: Shutdown the feature for automatic request distribution among row store and column store nodes (default).

  • Settings for whether to enable overload protection. Format: {"EnableOverloadThrottle":"Whether to enable overload protection"}. Valid values:

    • on: Enable overload protection.

    • off: Shutdown overload protection (default).

Note
  • Settings for transaction splitting, whether the primary database accepts read requests, the connection pool, and overload protection are supported only when the read/write mode of the PolarDB for MySQL cluster endpoint is set to Read and write (automatic read/write splitting).

  • When the read/write mode of the PolarDB for MySQL cluster endpoint is set to Read-only, both Load balancing based on the number of connections and Load balancing based on the number of active requests policies are supported. Cluster endpoints in the Read and write (automatic read/write splitting) mode support only the Load balancing based on the number of active requests policy.

  • Settings for automatic request distribution among row store and column store nodes are supported when the read/write mode of the PolarDB for MySQL cluster endpoint is set to Read and write (automatic read/write splitting), or when the read/write mode is set to Read-only and the load balancing policy is set to Load balancing based on the number of active requests.

  • Only PolarDB for MySQL supports setting the consistency level to global consistency.

  • If the ReadWriteMode parameter is set to ReadOnly, the consistency level can only be set to 0.

  • You can configure settings for the consistency level, transaction splitting, whether the primary database accepts read requests, and the connection pool at the same time. Example: {"ConsistLevel":"1","DistributedTransaction":"on","ConnectionPersist":"Session","MasterAcceptReads":"on"}.

  • The settings for transaction splitting are restricted by the settings for the consistency level. For example, if the consistency level is set to 0, transaction splitting cannot be enabled. If the consistency level is set to 1 or 2, transaction splitting can be enabled.

{\"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 :

    Disable.

  • on :

    Enable.

off

PolarSccWaitTimeout

string

No

The timeout period for global consistency.

100

PolarSccTimeoutAction

string

No

The timeout policy for global consistency. Valid values:

  • 0: Send the request to the primary node.

  • 2: Timeout degradation. If a global consistency read times out, the current query operation is automatically downgraded to regular requests, and the client does not receive an error message.

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.