A PolarDB-X instance is assigned a private endpoint by default. Applications and MySQL clients can connect to the PolarDB-X instance from an ECS instance. If you need to access PolarDB-X from the internet, you need to apply for a public endpoint for the PolarDB-X instance. This topic describes how to apply for and release public endpoints.
Apply for a public endpoint
-
Log on to the PolarDB-X console.
-
In the top navigation bar, select the region where the instance is deployed.
-
On the Instances page, click the PolarDB-X 2.0 tab.
-
Find the instance that you want to manage and click its ID.
-
In the upper-right corner of the Connection Information section, click Apply for Public IP Address.
-
In the dialog box that appears, click OK.
NoteTo connect to the instance using the public endpoint, you must add your client's public IP address to the instance's whitelist. For more information, see Set a whitelist.
Release a public endpoint
-
Log on to the PolarDB-X console.
-
In the top navigation bar, select the region where the instance is deployed.
-
On the Instances page, click the PolarDB-X 2.0 tab.
-
Find the instance that you want to manage and click its ID.
-
In the upper-right corner of the Connection Information section, click Release Public IP Address.
-
In the dialog box that appears, click OK.
NoteAfter you release the public endpoint, you can no longer use it to connect to the instance. For security, remove the corresponding public IP address from the whitelist. For more information, see Set a whitelist.