Switch between the master and slave databases of an RDS instance

Last Updated: Sep 14, 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 will bear 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 Yes Yes: forced; No: unforced; default value: unforced.

Return parameters

Name Type Description
<Public Return Parameters> - For details, see Public parameters.
Thank you! We've received your feedback.