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.
Create a database proxy endpoint
- Go to the Instances page. In the top navigation bar, select the region in which the RDS instance resides. Then, find the RDS instance and click the ID of the instance.
In the left-side navigation pane, click Database Proxy.
In the Endpoint section of the Proxy tab, click Create Endpoint.
Configure the Proxy Terminal, Endpoint, Port, and Network Type parameters. Then, click OK.
NoteYou 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
- Go to the Instances page. In the top navigation bar, select the region in which the RDS instance resides. Then, find the RDS instance and click the ID of the instance.
In the left-side navigation pane, click Database Proxy.
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.
Modify the values of the Endpoint and Port parameters and click OK.
NoteThe 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
You cannot delete a database proxy endpoint whose network type is Internal (VPC).
- Go to the Instances page. In the top navigation bar, select the region in which the RDS instance resides. Then, find the RDS instance and click the ID of the instance.
In the left-side navigation pane, click Database Proxy.
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.
NoteYou can delete only the public endpoint that you created.
Related operations
Operation | Description |
Queries the details of a database proxy. | |
Creates a database proxy endpoint. | |
Modifies a database proxy endpoint. | |
Deletes a database proxy endpoint. |