This topic describes how to manage the database proxy endpoints of an ApsaraDB RDS for PostgreSQL instance. After the database proxy feature is enabled, a default database proxy endpoint is generated. The proxy terminal feature is bound to this endpoint. You can create, modify, or delete a database proxy endpoint.

Prerequisites

The database proxy feature is enabled. For more information, see Enable and configure the database proxy feature for an ApsaraDB RDS for PostgreSQL instance.

Create a database proxy endpoint

  1. Visit the RDS instance list, select a region above, and click the target instance ID.
  2. In the left-side navigation pane, click Database Proxy.
  3. In the Endpoint section of the Proxy tab, click Create Endpoint. Create Endpoint
  4. Configure the Proxy Terminal, Endpoint, Port, and Network Type parameters. Then, click OK. Create Endpoint
    Note
    • You can create only one database proxy endpoint for which the Network Type parameter is set to Public.
    • The prefix of a database proxy endpoint must be 1 to 40 characters in length and can contain letters, digits, and hyphens (-). The prefix must start with a lowercase letter.
    • The port number that is bound to a database proxy endpoint must be within the range of 1000 to 5999.
    • After a database proxy endpoint is created, you cannot change the value of the Network Type parameter for the endpoint.

Modify a database proxy endpoint

  1. Visit the RDS instance list, select a region above, and click the target instance ID.
  2. In the left-side navigation pane, click Database Proxy.
  3. In the Endpoint section of the Proxy tab, find the database proxy endpoint that you want to modify and click Change to the right of the endpoint. Change
  4. Change the values of the Endpoint and Port parameters and click OK. Change Endpoint
    Note
    • The prefix of a database proxy endpoint must be 1 to 40 characters in length and can contain letters, digits, and hyphens (-). The prefix must start with a lowercase letter.
    • The port number that is bound to a database proxy endpoint must be within the range of 1000 to 5999.
    • You cannot change the value of the Network Type parameter for the endpoint.

Delete a database proxy endpoint

Note You cannot delete a database proxy endpoint whose network type is Internal (VPC).
  1. Visit the RDS instance list, select a region above, and click the target instance ID.
  2. In the left-side navigation pane, click Database Proxy.
  3. Find the database proxy endpoint that you want to delete and click Delete to the right of the endpoint. In the message that appears, click OK. Delete
    Note You can delete only the public endpoint that you created.

Related operations

Operation Description
DescribeDBProxy Queries the details of a database proxy.
CreateDBProxyEndpointAddress Creates a database proxy endpoint.
ModifyDBProxyEndpointAddress Modifies a database proxy endpoint.
DeleteDBProxyEndpointAddress Deletes a database proxy endpoint.