Modifies the endpoints of a specified PolarDB cluster, including the primary endpoint, the default cluster endpoint, custom cluster endpoints, and private domain names.


OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer. OpenAPI Explorer automatically generates the sample code of the operation for different SDKs.

Request parameters

Parameter Type Required Example Description
Action String No ModifyDBEndpointAddress

The operation that you want to perform. Set the value to ModifyDBEndpointAddress.

DBClusterId String Yes pc-***************

The ID of the PolarDB cluster.

DBEndpointId String Yes pe-****************

The ID of the endpoint.

Note You can call the DescribeDBClusterEndpoints operation to query endpoint IDs.
NetType String Yes Public

The network type of the endpoint. Valid values:

  • Public: public-facing endpoint
  • Private: VPC-facing endpoint
ConnectionStringPrefix String No pc-testprefix-pub2

The prefix of the new endpoint. The prefix must meet the following conditions:

  • The prefix must be 6 to 30 characters in length, and can contain lowercase letters, digits, and hyphens (-).
  • The prefix must start with a letter and end with a digit or a letter.
PrivateZoneAddressPrefix String No testprefix

The prefix of a private domain name.

You can bind a private domain name to each VPC-facing endpoint of a PolarDB cluster. Private domain names apply to only the VPC that you specify within the current region. Private domain names are managed through PrivateZone. You can use the CNAME record of the PrivateZone to map domain names to PolarDB. PrivateZone charges you a small number of fees for this feature. For more information, see Pricing.

Note This parameter only takes effect when NetType is set to Private.
PrivateZoneName String No

The name of the private zone.

Note This parameter only takes effect when NetType is set to Private.
Port String No 3306

The port number. Valid values: 3000 to 5999.

  • Only PolarDB for MySQL clusters support this parameter. If you leave this parameter blank, the default port 3306 is used.

Response parameters

Parameter Type Example Description
RequestId String D0CEC6AC-7760-409A-A0D5-E6CD86******

The ID of the request.


Sample requests

http(s):// Action=ModifyDBEndpointAddress
&<Common request parameters>

Sample success responses

XML format


JSON format

  "RequestId": "D0CEC6AC-7760-409A-A0D5-E6CD86******"

Error codes

For a list of error codes, visit the API Error Center.