When you connect to an ApsaraDB RDS for PostgreSQL instance, you must enter the internal or public endpoint and port number of the RDS instance. This topic describes how to view and change the internal and public endpoints and port numbers of an ApsaraDB RDS for PostgreSQL instance in the ApsaraDB for RDS console.

View the internal and public endpoints and port numbers

  1. Log on to the ApsaraDB for RDS console.
  2. In the left-side navigation pane, click Instances. In the top navigation bar, select the region where the target RDS instance resides.
    Select a region
  3. Find the target instance and click the instance ID.
  4. In the Basic Information section, view the internal and public endpoints and port numbers.
    Note
    View the internal and public endpoints and port numbers

Change the internal and public endpoints and port numbers

  1. Log on to the ApsaraDB for RDS console.
  2. In the left-side navigation pane, click Instances. In the top navigation bar, select the region where the target RDS instance resides.
    Select a region
  3. Find the target instance and click the instance ID.
  4. In the left-side navigation pane, click Database Connection.
  5. In the upper-right corner of the Database Connection section, click Change Endpoint.
  6. In the dialog box that appears, select a connection type, enter the prefix of the endpoint, specify the port number, and then click OK.
    Note
    • The prefix of the endpoint must be 8 to 64 characters in length and can only contain letters, digits, and hyphens (-). It must start with a lowercase letter.
    • The port number must be within the range of 1000 to 5999.
    • If the RDS instance uses local SSDs, you cannot change its port numbers.
    Change the endpoints and port numbers of an ApsaraDB RDS for PostgreSQL instance

FAQ

  • After I change an endpoint or port number of an RDS instance, do I need to change them on my application?

    Yes, after you change an endpoint or port number of an RDS instance, you must change them on your application. If you do not change them on your application, your application cannot connect to the RDS instance.

  • After I change an endpoint or port number of an RDS instance, does the change immediately take effect? Do I need to restart the RDS instance?

    After you change an endpoint or port number of an RDS instance, the change immediately takes effect. You do not need to restart the RDS instance.

  • After I change or release an endpoint of an RDS instance, can I use the endpoint for another RDS instance?

    Yes, after you change or release an endpoint of an RDS instance, you can use the endpoint for another RDS instance.