v1

latestOpenAPI 3.0.0Creative Commons Attribution 3.02026-07-13203076.0 KB
projects

Fail over a reservation to the secondary location. The operation should be done in the current secondary location, which will be promoted to the new primary location for the reservation. Attempting to failover a reservation in the current primary location will fail with the error code google.rpc.Code.FAILED_PRECONDITION.

post/v1/{+name}:failoverReservation

Path parameters

namestring required

Required. Resource name of the reservation to failover. E.g., projects/myproject/locations/US/reservations/team1-prod

Request body

failoverMode'FAILOVER_MODE_UNSPECIFIED' | 'SOFT' | 'HARD'

Optional. A parameter that determines how writes that are pending replication are handled after a failover is initiated. If not specified, HARD failover mode is used by default.

Response

Successful response