When you connect to a PolarDB-O cluster, you must enter an endpoint of the PolarDB-O cluster. PolarDB-O supports cluster endpoints and primary endpoints. For each type of endpoints, you can apply for an internal endpoint or a public endpoint to connect to the cluster. This topic describes how to modify or delete an endpoint in the PolarDB-O console.

Modify an endpoint

  1. Log on to the PolarDB console.
  2. In the upper-left corner of the console, select the region where the cluster resides.
  3. Find the cluster, and then click the cluster ID.
  4. In the Endpoints section of the Overview page, click the Switch views icon in the upper-right corner to switch views.
  5. Find the endpoint that you want to modify and click Modify.
    Modify an endpoint
  6. In the dialog box that appears, modify the prefix of the Public-facing Endpoint or VPC-facing Endpoint endpoint.
    Notice
    • The prefix of the endpoint must meet the following requirements:
      • 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 letter.
    • If SSL is enabled for the endpoint, the cluster will be restarted after you modify the endpoint.
    • If SSL is enabled for the endpoint, the total length of the new endpoint cannot exceed 64 characters.
  7. Click OK.

Delete an endpoint

Warning
  • Before you delete an endpoint, make sure that your application is connected to the cluster through a new endpoint.
  • The deleted endpoint cannot be restored. You can click Apply next to the required endpoint type in the console to apply for a new endpoint. For more information, see Apply for an endpoint.
  1. Log on to the PolarDB console.
  2. In the upper-left corner of the console, select the region where the cluster resides.
  3. Find the cluster, and then click the cluster ID.
  4. In the Endpoints section of the Overview page, click the Switch views icon in the upper-right corner to switch views.
  5. Find the endpoint that you want to delete and click Delete.
    Delete an endpoint
    Note You can only delete Public-facing Endpoint endpoints.
  6. Click OK.

Related operations

API Description
DescribeDBClusterEndpoints Queries the endpoint of a cluster.
CreateDBEndpointAddress Creates a public endpoint for a cluster.
ModifyDBEndpointAddress Modifies the default endpoint of a cluster.
DeleteDBEndpointAddress Deletes an endpoint of a cluster.