You can connect to a MyBase for SQL Server instance over an internal network or the Internet. By default, MyBase for SQL Server provides a private endpoint for you to connect to your instance. If you need to connect to the instance over the Internet, apply for a public endpoint. This topic describes how to apply for and release a public endpoint for a MyBase for SQL Server instance.

Private and public endpoints

Endpoint type Description
Private endpoint
  • By default, MyBase for SQL Server provides a private endpoint for you to connect to your instance. You do not need to apply for the private endpoint. The private endpoint cannot be released.
  • If an Elastic Compute Service (ECS) instance is deployed in the same region and uses the same network type as your MyBase for SQL Server instance, the two instances can communicate with each other over an internal network. If your application is deployed on such an ECS instance, you do not need to apply for a public endpoint. For more information about network types, see Change the network type of an ApsaraDB RDS for SQL Server instance.
  • For security purposes, we recommend that you use the private endpoint to connect to your MyBase for SQL Server instance.
Public endpoint
  • You must manually apply for a public endpoint for your MyBase for SQL Server instance. You can release the public endpoint if it is no longer needed.
  • If you cannot connect to a MyBase for SQL Server instance over an internal network, apply for a public endpoint. You can apply for a public endpoint in the following scenarios:
    • You connect to a MyBase for SQL Server instance from an ECS instance. However, the two instances are deployed in different regions or use different network types. For more information about network types, see Change the network type of an ApsaraDB RDS for SQL Server instance.
    • You connect to a MyBase for SQL Server instance from a third-party device.
Note
  • You are not charged for applying for a public endpoint. You are also not charged for the traffic that is generated after you use the public endpoint to connect to your instance over the Internet.
  • If you use the public endpoint to connect to a MyBase for SQL Server instance, data security is compromised. Proceed with caution.
  • We recommend that you migrate your application to the ECS instance that is deployed in the same region and uses the same network type as your MyBase for SQL Server instance. This allows you to use the private endpoint to connect to the MyBase for SQL Server instance. The private connection accelerates transmission and improves data security.

Procedure

  1. Log on to the ApsaraDB for MyBase console.
  2. In the top navigation bar, select the region where you want to create a dedicated cluster.
    Select a region
  3. In the left-side navigation pane, choose Instances > SQL Server.
  4. Find the instance that you want to release, and click Details in the Actions column to go to the details page of the instance in the ApsaraDB RDS console.
  5. In the left-side navigation pane, click Database Connection.
  6. Apply for or release the public endpoint for the instance.
    • To apply for the public endpoint, click Apply for Public Endpoint.
    • To release the public endpoint, click Release Public Endpoint.
      Note After the public endpoint is released, you cannot use the public endpoint to connect to the instance. Proceed with caution.
  7. In the message that appears, click OK.