You must use the internal or public endpoint and port to connect to an RDS instance. This topic describes how to view the internal and public endpoints and ports of an ApsaraDB RDS for PostgreSQL instance and change the internal and public endpoints.

Procedure

  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. On the Basic Information page, find the Basic Information section, where you can view the internal and public endpoints and ports of the RDS instance.
    Note
    • The internal and public endpoints are displayed only after you configure a whitelist.
    • The public endpoint is displayed only after you apply for it.
    查看内外网地址和端口信息

Change the internal and public endpoints

Note You cannot change the ports of RDS for PostgreSQL instances.
  1. Log on to the ApsaraDB for RDS console.
  2. In the top navigation bar, select the region where the target RDS instance resides.Select a region
  3. Find the target RDS instance and click its ID.
  4. In the left-side navigation pane, click Database Connections.
  5. Click Change Endpoint.
  6. In the Change Endpoint dialog box, specify a prefix for the internal or public endpoint and click OK.
    Note The endpoint prefix must be 8 to 64 characters in length and can contain letters, digits, and hyphens (-). It must start with a lowercase letter.
    Change Endpoint