All Products
Document Center

Switch between the master and slave databases of an RDS instance

Last Updated: Dec 06, 2017


RDS instances are composed of master and slave databases distributed across different servers. You can use the API to switch between the master and slave databases, and new master databases afford the service traffic.

Request parameters

Name Type Required? Description
Action String Yes Required parameter. Value: SwitchDBInstanceHA.
DBInstanceId String Yes Instance ID.
NodeId String Yes Unique ID of a node. You can view the value of this parameter through the DescribeDBInstanceHAConfig interface.
Force String No Yes: forced; No: unforced; default value: unforced.

Return parameters

Name Type Description
<Public Return Parameters> - For more information, see Public parameters.