RDS supports two types of endpoints: internal endpoints and public endpoints.

Internal and endpoints

Endpoint type Description
Internal endpoints
  • An internal endpoint is generated by default.
  • If your application is deployed on an ECS instance that is located in the same region as your RDS instance and, at the same time, the ECS instance has the same network type as your RDS instance, your RDS instance can communicate with the ECS instance through a private network. In such case, you do not need to apply for a public endpoint.
  • Accessing your RDS instance through a private network is more secure and helps to maximize RDS performance.
Public endpoints
  • You must manually apply for a public endpoint, which can be released at anytime.
  • If you cannot access your RDS instance through a private network in one of the following scenarios, you must apply for a public endpoint:
    • You access your RDS instance from an ECS instance that is located in a different region or has a different network type from your RDS instance.
    • You access your RDS instance from a device outside the Alibaba Cloud.
Note
  • Using the public endpoint reduces security. Please exercise caution.
  • To guarantee high security and performance, we recommend that you migrate your application to an ECS instance that is located in the same region and has the same network type as your RDS instance and then use the internal endpoint.

Apply for or release the public endpoint

  1. Log on to the RDS console.
  2. In the upper-left corner, select the region where the target RDS instance is located.
    地域截图
  3. Find the target RDS instance and click the instance ID.
  4. In the left-side navigation pane, click Database Connection.
  5. Apply for or release the public endpoint.
    • If you have applied for a public endpoint for the RDS instance, click Apply for Public Endpoint.
      申请外网地址
    • If you have not applied for a public endpoint for the RDS instance, click Release Public Endpoint.
      释放外网地址
  6. In the displayed dialog box, set the parameters and click OK.

Change an internal or public endpoint

  1. Log on to the RDS console.
  2. In the upper-left-corner, select the region where the target RDS instance is located.
  3. Find the target RDS instance and click the instance ID.
  4. In the left-side navigation pane, click Database Connection.
  5. Click Change Endpoint.
  6. In the displayed dialog box, select a connection type, set the endpoint and port, and click OK.

    Note
    • The prefix of an endpoint starts with a lowercase letter and contains 8 to 64 characters including letters, digits, and hyphens (-).
    • You cannot change the port of the internal or public endpoint for an RDS for SQL Server, RDS for PostgreSQL, or RDS for PPAS instance that runs in a VPC.

APIs

API Description
AllocateInstancePublicConnection Used to apply for an Internet IP address for your RDS instance.
ReleaseInstancePublicConnection Used to release the IP address of your RDS instance.