All Products
Search
Document Center

ApsaraDB RDS:View or modify endpoints and ports

Last Updated:Mar 28, 2026

ApsaraDB RDS for SQL Server instances expose internal and public endpoints that your application uses to connect. This topic explains how to view and modify those endpoints and ports, and how to view or disable read-only endpoints on Cluster Edition instances.

Endpoint types

Endpoint typeDescriptionRelated topics
Internal endpointApplicable to all scenarios where you connect to an instance.Enable or disable a public endpoint
Public endpointApplicable to all scenarios where you connect to an instance. Must be enabled before use.Enable or disable a public endpoint
Unified read-only endpointRoutes read requests to the secondary node and read-only instances based on their assigned weights. Configure this endpoint in your application to enable read/write splitting.Enable a read-only endpoint
Secondary node read-only endpointProvides direct access to the secondary node. Does not route traffic to the primary instance or read-only instances.Enable a read-only endpoint
If your application connects only through the internal or public endpoint of the primary instance, all requests go to the primary instance — none are distributed to the secondary node or read-only instances.

View or modify internal and public endpoints and ports

Prerequisites

Before you begin, ensure that you have:

Important

After you modify an endpoint or port, update the connection parameters 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 where the instance resides. Find the instance and click its ID.

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

  3. Click Modify Endpoint.

  4. Configure the connection settings, then click Ok.

    FieldDescriptionRequirement
    Connection TypeThe endpoint to modifySelect Internal Endpoint or Public Endpoint
    EndpointThe endpoint prefixMust start with a lowercase letter, be 8–64 characters long, and contain only letters, digits, and hyphens (-)
    PortThe port numberMust be between 1000 and 5999

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

Prerequisites

Before you begin, ensure that you have enabled either a unified read-only endpoint or a secondary node read-only endpoint.

Important

Keep the following in mind before disabling a read-only endpoint:

  • Disabling a read-only endpoint invalidates it immediately. Your application can no longer use it to connect to the instance. Internal and public endpoints are not affected.

  • Disabling causes a transient disconnection lasting less than 30 seconds. Perform this operation during off-peak hours and make sure your application has an automatic reconnection mechanism.

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

Disable the unified read-only endpoint

  1. Go to the Instances page. In the top navigation bar, select the region where the instance resides. Find the instance and click its ID.

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

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

image.png
  1. In the dialog box, click OK.

Disable the secondary node read-only endpoint

  1. Go to the Instances page. In the top navigation bar, select the region where the instance resides. Find the instance and click its ID.

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

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

image.png
  1. In the dialog box, click OK.

FAQ

Do I need to update my application after modifying an endpoint or port?

Yes. Update the connection parameters in your application immediately. Otherwise, connections will fail.

Do endpoint or port changes require a restart?

No. Changes take effect immediately without restarting the instance.

Can I reuse a released endpoint for another instance?

Yes. Once released, the endpoint becomes available for other instances.

Does a primary/secondary switchover change the endpoint?

No. The endpoint stays the same after a switchover. Only the underlying IP address changes, which does not affect your application.