All Products
Search
Document Center

PolarDB:Modify or delete an endpoint

更新時間:Nov 06, 2024

You can use the primary endpoint or a cluster endpoint of a PolarDB cluster to connect to the cluster. Each type of endpoint provides public and private options. You can choose to connect to the cluster by using a public or private endpoint based on your business requirements. This topic describes how to modify or delete an endpoint in the PolarDB console.

Modify an endpoint

  1. Log on to the PolarDB console.

  2. In the left-side navigation pane, click Clusters.

  3. In the upper-left corner, select the region in which the cluster is deployed.

  4. Find the cluster and click its ID.

  5. In the Database Connections section of the Basic Information page, view and modify the endpoint by using one of the following methods:

    • Method 1

      1. In the upper-right corner of the Database Connections section, click the Switch icon icon to switch views.

      2. Find the endpoint that you want to modify and click Modify. 1

    • Method 2

      1. Click Configure on the right of the cluster endpoint.

      2. In the Network Information section of the dialog box that appears, choose More > Modify. 2

  6. In the dialog box that appears, modify the prefix of the Public or Private endpoint.

    Important
    • The prefix of the endpoint must meet the following requirements:

      • The prefix must be 6 to 40 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.

    • If Secure Sockets Layer (SSL) is enabled for the endpoint, the cluster is 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 left-side navigation pane, click Clusters.

  3. In the upper-left corner, select the region in which the cluster is deployed.

  4. Find the cluster and click its ID.

  5. In the Database Connections section of the Basic Information page, delete an endpoint by using one of the following methods:

    • Method 1

      1. In the upper-right corner of the Database Connections section, click the Switch icon icon to switch views.

      2. Find the endpoint that you want to delete and click Delete. 1

    • Method 2

      1. Click Configure on the right of the cluster endpoint.

      2. In the Network Information section of the dialog box that appears, choose More > Delete. 1

    Note

    You can delete only Public endpoints.

  6. Click OK.

Related API operations

Operation

Description

DescribeDBClusterEndpoints

Queries the endpoints of a PolarDB cluster.

CreateDBEndpointAddress

Creates a public endpoint for a PolarDB cluster.

ModifyDBEndpointAddress

Modifies the default endpoint of a PolarDB cluster.

DeleteDBEndpointAddress

Deletes a cluster endpoint of a PolarDB cluster.