All Products
Search
Document Center

ApsaraDB for SelectDB:Apply for or release a public endpoint

Last Updated:Jan 26, 2025

ApsaraDB for SelectDB instances support virtual private cloud (VPC) endpoints and public endpoints. If your client and an ApsaraDB for SelectDB instance reside in the same VPC, you can connect to the instance by using a VPC endpoint. If your client and the ApsaraDB for SelectDB instance reside in different VPCs, you must apply for a public endpoint and use the public endpoint to connect to the ApsaraDB for SelectDB instance. This topic describes how to apply for or release a public endpoint.

Usage notes

Important

After you apply for a public endpoint for an ApsaraDB for SelectDB instance, all clusters in the ApsaraDB for SelectDB instance are associated with addresses that can be used to access the clusters over the Internet and the 8040 and 8060 ports are enabled for the clusters. This facilitates HTTP operations such as data import by using Stream Load and metric capturing. The addresses associated with the clusters are restricted by the whitelist mechanism. If you want to use an associated address to access a cluster in your ApsaraDB for SelectDB instance, make sure that the IP address of the client is added to the IP address whitelist of the ApsaraDB for SelectDB instance. For more information, see Configure an IP address whitelist.

When you release a public endpoint, take note of the following items:

  • After you release the public endpoint of an ApsaraDB for SelectDB instance, you can no longer connect to the instance by using the released public endpoint. You must change the endpoint that is used to connect to the instance on your client.

  • After the public endpoint of an ApsaraDB for SelectDB instance is released, we recommend that you remove relevant public IP addresses or CIDR blocks from the IP address whitelist of the instance to ensure data security.

Apply for a public endpoint

  1. Log on to the ApsaraDB for SelectDB console.

  2. In the top navigation bar, select the region in which the instance that you want to manage resides.

  3. In the left-side navigation pane, click Instances. On the Instances page, find the instance and click the instance ID. The Instance Details page appears.

  4. In the Network Information section of the Instance Details page, click Apply for Public Endpoint.

  5. In the Apply for Public Endpoint message, click OK.

Release a public endpoint

  1. Log on to the ApsaraDB for SelectDB console.

  2. In the top navigation bar, select the region in which the instance that you want to manage resides.

  3. In the left-side navigation pane, click Instances. On the Instances page, find the instance and click the instance ID. The Instance Details page appears.

  4. In the Network Information section of the Instance Details page, click Release Public Endpoint.

  5. In the Release Public Endpoint message, click OK.

What to do next

If you want to use a public endpoint to connect to an ApsaraDB for SelectDB instance, perform the following operations:

  • Add the public IP address of your client or the device on which your application resides to an IP address whitelist of the ApsaraDB for SelectDB instance. For more information, see Configure an IP address whitelist.

    Note

    If you use a public endpoint to connect to an ApsaraDB for SelectDB instance, Internet traffic is generated. You are not charged for the generated inbound or outbound Internet traffic.

  • Connect to the instance. For more information, see Connect to an ApsaraDB for SelectDB instance by using a MySQL client.