projects
Switches the roles of PRIMARY and SECONDARY clusters without any data loss. This promotes the SECONDARY cluster to PRIMARY and sets up the original PRIMARY cluster to replicate from this newly promoted cluster.
post/v1/{+name}:switchover
Request
- Base URL: https://alloydb.googleapis.com
- URL: https://alloydb.googleapis.com/v1/{+name}:switchover
- Auth: OAuth 2 (implicit, authorization URL https://accounts.google.com/o/oauth2/auth, scopes: https://www.googleapis.com/auth/cloud-platform) and OAuth 2 (authorization code, authorization URL https://accounts.google.com/o/oauth2/auth, token URL https://accounts.google.com/o/oauth2/token, scopes: https://www.googleapis.com/auth/cloud-platform)
Path parameters
namestring required
Required. The name of the resource. For the required format, see the comment on the Cluster.name field
Request body
Response
Successful response
Changes
- breaking
removed the request body
- breaking
removed the media type
*/*for the response with the status
- breaking