When you connect to a PolarDB cluster, you need to provide the endpoint of the PolarDB cluster. PolarDB provides both private and public endpoints. This topic describes how to modify and release PolarDB endpoints in the console.
Modify an endpoint
-
Log on to the PolarDB console. In the left-side navigation pane, click Clusters, select the region where your cluster is located, and then click the ID of the target cluster.
-
You can modify an endpoint based on the cluster type.
Centralized PolarDB for PostgreSQL
A centralized PolarDB for PostgreSQL cluster refers to a cluster whose Edition is Enterprise Edition or Standard Edition.
On the Basic Information page, in the Database Connections section, find the target endpoint. Click
>Edit to the right of Private or Public.Important-
The endpoint prefix must meet the following requirements:
-
Must be 6 to 40 characters in length and contain only lowercase letters, digits, and hyphens (-).
-
Starts with a lowercase letter and ends with a digit or a letter.
-
-
The port must be between 1000 and 5999.
-
If SSL is enabled for this endpoint, modifying it restarts the cluster.
-
If SSL is enabled for this endpoint, the modified endpoint cannot exceed 64 characters in length.
Distributed PolarDB for PostgreSQL
-
On the Basic Information page, in the Database Connections section, find the target endpoint. Click the
icon to the right of the Private Endpoint or Public Endpoint.This section displays endpoint cards, such as Primary Endpoint and Custom Endpoint. Each card shows the public endpoint, private endpoint, and EndpointId. An option to Create Custom Endpoint is available on the right.
-
In the dialog box, set the endpoint prefix and click OK.
Note-
The endpoint prefix must meet the following requirements:
-
Must be 6 to 40 characters in length and contain only lowercase letters, digits, and hyphens (-).
-
Starts with a lowercase letter and ends with a digit or a letter.
-
-
The port must be between 1000 and 5999.
-
-
Release an endpoint
-
You can release only Public endpoints.
-
You cannot release the public endpoint of a distributed PolarDB for PostgreSQL cluster.
-
Before you release an endpoint, ensure that your applications are using a new endpoint.
-
After an endpoint is released, it cannot be recovered. You can only Apply for a new one.
-
The default cluster endpoint can be modified but cannot be released. Only custom cluster endpoints can be released.
-
Log on to the PolarDB console. In the left-side navigation pane, click Clusters, select the region where your cluster is located, and then click the ID of the target cluster.
-
On the cluster's Basic Information page, in the Database Connections section, find the target endpoint, and click
>Edit to the right of Public to modify the endpoint.In the Database Connection section, under Primary Endpoint, find the target EndpointId and click Release on the right.
Related APIs
|
API |
Description |
|
Queries the endpoint information for a cluster. |
|
|
Creates a public endpoint for a cluster. |
|
|
Modifies the default endpoint of a cluster. |
|
|
Releases a cluster endpoint. |