You can call this operation to modify the public endpoints of a specified ApsaraDB for POLARDB cluster, including the primary endpoint, default cluster endpoint, and custom cluster endpoint.


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

Request parameters

Parameter Type Required Example Description
DBClusterId String Yes pc-xxxxxxxxxx

The ID of the cluster.

DBEndpointId String Yes pe-xxxxxxxxxx

The ID of the endpoint. For example, pe-xxxxxxxx.

Note You can use the DescribeDBClusterEndpoints operation to query.
NetType String Yes Public

The network type of the endpoint. Valid values:

  • Public
  • Private
AccessKeyId String No key-test

The AccessKey ID provided to you by Alibaba Cloud.

Action String No ModifyDBEndpointAddress

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

ConnectionStringPrefix String No pc-xxxxxxxxxx-pub2

The prefix of the new endpoint. The prefix must comply with the following rules:

  • It cannot end with a hyphen (-).
  • It can contain lowercase letters, digits, and hyphens (-). It must start with a letter.
  • It must be more than six characters in length.

Response parameters

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

The ID of the request.


Sample requests

http(s)://[Endpoint]/? Action=ModifyDBEndpointAddress
&<Common request parameters>

Sample success responses

XML format


JSON format


Error codes

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