By default, an instance is assigned only a VPC endpoint. Apply for a public endpoint to connect from outside a VPC, and release it when it is no longer needed to reduce security risks.
Endpoint network types
|
Network type |
Description |
|
VPC |
|
|
public network |
Because connecting over the public network carries security risks, an instance has no public endpoint by default. Apply for a public endpoint if your client falls into any of the following cases:
Note
|
Limitations
-
Cloud-native cluster instances in direct connection mode do not support applying for a public endpoint.
-
Password-free access is available only over VPC. When connecting over a public endpoint, you must provide a password even if password-free access is enabled on the instance.
-
Applying for a public endpoint does not affect the instance, but it lowers security. Use it with caution.
-
After you apply for a public endpoint, the instance enters the Network Changing state, during which operations such as changing configurations and resetting the password are unavailable until the change completes.
Apply for a public endpoint
Procedure
Log on to the console and go to the Instances page. In the top navigation bar, select the region in which the instance that you want to manage resides. Then, find the instance and click the instance ID.
In the Connection Information section, click Apply for Endpoint to the right of Internet Access.
NoteIf the instance is a cloud-native cluster instance in direct connection mode, the Apply for Endpoint button is not displayed or is dimmed.
In the panel that appears, enter an endpoint and a port number.
Parameter
Description
Endpoint
You can modify only the prefix of the endpoint. By default, the prefix is the instance ID.
The prefix must be 8 to 40 characters in length and can contain lowercase letters and digits. It must start with a lowercase letter.
Port
When you modify the endpoint, you can also modify the port number. Valid values for this parameter: 1024 to 65535.
Click OK.
After the application is submitted, the public endpoint is displayed in the Connection Information section.
Release the public endpoint
Prerequisite: A public endpoint has been allocated to the instance (see Apply for a public endpoint above).
This operation makes the current public endpoint unavailable, and clients can no longer connect to the instance over the public endpoint. Proceed with caution.
Log on to the console and go to the Instances page. In the top navigation bar, select the region in which the instance that you want to manage resides. Then, find the instance and click the instance ID.
-
In the Connection Information section, click Release Connection Address next to Public Access.
-
In the panel that appears, click OK.
After releasing the endpoint, we recommend that you delete the corresponding public IP address from the instance's whitelist to ensure data security. For details, see Configure whitelists.
FAQ
Is there a charge for applying for a public endpoint?
Why can't I find the option to apply for a public endpoint?
Can I use password-free access over a public endpoint?
What does the "Current engine version does not support operations" error mean?
Related APIs
|
API operation |
Description |
|
Applies for a public endpoint for an instance. |
|
|
Releases a public endpoint for an instance. |