When you connect to an ApsaraDB RDS for SQL Server instance, you must enter its internal or public endpoint and port number. This topic describes how to view and change the internal and public endpoints and port numbers of an RDS instance in the ApsaraDB RDS console.
View the internal and public endpoints and port numbers of an RDS instance
- Access RDS Instances, select a region at the top, and then click the ID of the target RDS instance.
- In the Basic Information section of the Basic Information page, click See Detail next to Network Type. In the pane that appears, view the internal and public endpoints and port numbers of your RDS instance. Note
- The internal and public endpoints of your RDS instance appear only after you specify whitelist settings. For more information, see Configure an IP address whitelist for an ApsaraDB RDS for SQL Server instance.
- The public endpoint of your RDS instance appears only after you apply for a public endpoint. For more information, see Apply for or release a public endpoint on an ApsaraDB RDS for SQL Server instance.
Change the internal or public endpoint and port number of an RDS instance
- Access RDS Instances, select a region at the top, and then click the ID of the target RDS instance.
- In the left-side navigation pane, click Database Connection.
- Click Change Endpoint.
- In the dialog box that appears, select a connection type, enter the prefix of the new endpoint, specify the port number, and then click OK. Note
- The prefix can contain lowercase letters, digits, and hyphens (-). The prefix must start with a lowercase letter and end with a lowercase letter or a digit.
- The prefix must contain at least 8 characters, and the total length of the endpoint cannot exceed 63 characters. The total length includes the prefix and suffix of the endpoint.
- The port number must be a value within the range of 1000 to 5999.
FAQ
- After I change an endpoint or a port number of my RDS instance, do I need to update the endpoint or port number information in my application?
Yes, after you change an endpoint or a port number of your RDS instance, you must update the endpoint or port number information on your application. If you do not update the information, your application cannot connect to your RDS instance.
- After I change an endpoint or a port number of my RDS instance, does the change immediately take effect? Do I need to restart my RDS instance?
After you change an endpoint or a port number of your RDS instance, the change immediately takes effect. You do not need to restart your RDS instance.
- After I change or release an endpoint of my RDS instance, can I use the endpoint for another RDS instance?
Yes, you can change the network type of a read-only RDS instance and retain the classic network endpoint.
- Does a primary/secondary switchover trigger changes to the endpoints of my RDS instance?
No, a primary/secondary switchover does not trigger changes to the endpoints of your RDS instance. However, the IP addresses that are associated with the endpoints change. Your application can still connect to your RDS instance by using the endpoints.