You can call this operation to create the public endpoints of a specified Apsara 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
Action String No CreateDBEndpointAddress

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

DBClusterId String Yes pc-xxxxxxxxxxxxxx

The ID of the Apsara PolarDB cluster.

DBEndpointId String Yes pe-xxxxxxxxxxxxx

The ID of the endpoint. Example: pe-xxxxxxxxxxx.

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

The network type of the endpoint. Set the value to Public (public network).

ConnectionStringPrefix String No pc-xxxxxxxxxxxx-pub

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

  • It cannot end with a hyphen (-).
  • It must start with a letter and contain lowercase letters, digits, and hyphens (-).
  • 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=CreateDBEndpointAddress
&<Common request parameters>

Sample success responses

XML format


JSON format

  "RequestId": "D0CEC6AC-7760-409A-A0D5-E6CD8660E9CC"

Error codes

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