All Products
Search
Document Center

ApsaraDB RDS:View or modify endpoints and ports

Last Updated:Feb 04, 2026

This topic describes how to view and manage internal endpoints, public endpoints, and ports for an ApsaraDB RDS for SQL Server instance in the ApsaraDB RDS console.

Background information

An ApsaraDB RDS for SQL Server instance provides endpoints and ports that you use as connection parameters when connecting to the instance. The required connection parameters depend on your connection method. For more information, see Connect to an ApsaraDB RDS for SQL Server instance.

The following table describes the types of endpoints. You can view, modify, or disable them based on your requirements.

Endpoint type

Usage notes

Related tutorials

Internal and public endpoints

Applicable to all scenarios where you connect to an instance.

Read-only address

Read-only endpoints include a unified read-only endpoint and a secondary node read-only endpoint:

  • Unified read-only endpoint: Configure this endpoint in your application to implement read/write splitting. When a client sends a read request to the unified read-only endpoint, the request is automatically distributed to the secondary node and all configured read-only instances based on their assigned weights.

  • Secondary node read-only endpoint: Configure this endpoint in your application to access the secondary node directly. This endpoint does not provide access to the primary node or to read-only instances.

If your application uses only the internal or public endpoint of the primary instance, all requests go to the primary instance and are not distributed to the secondary node or read-only instances.

View or modify internal and public endpoints and ports

Prerequisites

Notes

If you modify an endpoint or port, you must update the corresponding endpoint or port in your application. Otherwise, your application cannot connect to the database.

Procedure

  1. 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.

  2. In the navigation pane on the left, click Database Connection to view the internal and public endpoints and ports of the instance.

  3. Click Modify Endpoint.

  4. Select the Connection Type. Then, set the Endpoint prefix and Port for either the Internal Endpoint or the Public Endpoint, and click Ok.

    Note
    • The endpoint prefix must start with a lowercase letter and be 8 to 64 characters long. It can contain letters, digits, and hyphens (-).

    • The port number must be between 1000 and 5999.

FAQ

  • Q: Do I need to update the endpoint or port in my application after I modify them?

    A: Yes, you must update them. Otherwise, your application cannot connect to the database.

  • Q: Do the changes to an endpoint or port take effect immediately? Do I need to restart the instance?

    A: The changes take effect immediately. You do not need to restart the instance.

  • Q: After I modify or release an endpoint, can I use the previous endpoint for another instance?

    A: Yes, you can.

  • Q: Does a primary/secondary switchover affect the endpoint?

    A: A primary/secondary switchover does not change the endpoint. Only the underlying IP address changes, and this does not affect your application.

View or disable a read-only endpoint (for Cluster Edition instances)

Prerequisites

You have enabled either a unified read-only endpoint or a secondary node read-only endpoint for the instance.

Notes

  • After you disable a read-only endpoint, whether it is a unified or secondary node endpoint, it becomes invalid. Your application can no longer use the endpoint to connect to the instance. The public and internal endpoints of the instance are not affected.

  • When you disable a read-only endpoint, a transient disconnection that lasts less than 30 seconds occurs. Disable the endpoint during off-peak hours and ensure that your application has an automatic reconnection mechanism to prevent service interruptions.

  • Each time you re-enable a unified or secondary node read-only endpoint, the endpoint may be different from the previous one.

Procedure

Disable the unified read-only endpoint

  1. Log on to the ApsaraDB RDS console and 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 instance ID.

  2. In the navigation pane on the left, click Cluster Management.

  3. In the Read-only Network Information section, click Disable Readonly Splitting Address.

    image.png

  4. In the dialog box that appears, click OK.

Disable the secondary node read-only endpoint

  1. Log on to the ApsaraDB RDS console and 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 instance ID.

  2. In the navigation pane on the left, click Cluster Management.

  3. In the Secondary Instance Network Information section, click Disable Secondary Instance Endpoint.

    image.png

  4. In the dialog box that appears, click OK.