Method: instances.failover

instances.failover the instance to its failover replica instance.

HTTP request

POST https://www.googleapis.com/sql/v1beta4/projects/{project}/instances/{instance}/failover

The URL uses gRPC Transcoding syntax.

Path parameters

Parameters
project

string

ID of the project that contains the read replica.

instance

string

Cloud SQL instance ID. This does not include the project ID.

Request body

The request body contains an instance of InstancesFailoverRequest.

Response body

If successful, the response body contains an instance of Operation.

Authorization Scopes

Requires one of the following OAuth scopes:

  • https://www.googleapis.com/auth/cloud-platform
  • https://www.googleapis.com/auth/sqlservice.admin

For more information, see the Authentication Overview.

InstancesFailoverRequest

Instance failover request.

JSON representation
{
  "failoverContext": {
    object (FailoverContext)
  }
}
Fields
failoverContext

object (FailoverContext)

instances.failover Context.

FailoverContext

Database instance failover context.

JSON representation
{
  "settingsVersion": string,
  "kind": string
}
Fields
settingsVersion

string (int64 format)

The current settings version of this instance. Request will be rejected if this version doesn't match the current settings version.

kind

string

This is always

sql#failoverContext

.

Esta página foi útil? Conte sua opinião sobre:

Enviar comentários sobre…

Cloud SQL for MySQL
Precisa de ajuda? Acesse nossa página de suporte.