File: //snap/google-cloud-cli/current/help/man/man1/gcloud_sql_instances_switchover.1
.TH "GCLOUD_SQL_INSTANCES_SWITCHOVER" 1
.SH "NAME"
.HP
gcloud sql instances switchover \- switches over a Cloud SQL instance to one of its replicas
.SH "SYNOPSIS"
.HP
\f5gcloud sql instances switchover\fR \fIREPLICA\fR [\fB\-\-async\fR] [\fB\-\-db\-timeout\fR=\fIDB_TIMEOUT\fR] [\fIGCLOUD_WIDE_FLAG\ ...\fR]
.SH "DESCRIPTION"
Switches over a Cloud SQL instance to one of its replicas.
.SH "EXAMPLES"
To switch over an instance to its replica called replica\-instance:
.RS 2m
$ gcloud sql instances switchover replica\-instance
.RE
.SH "POSITIONAL ARGUMENTS"
.RS 2m
.TP 2m
\fIREPLICA\fR
Cloud SQL replica ID.
.RE
.sp
.SH "FLAGS"
.RS 2m
.TP 2m
\fB\-\-async\fR
Return immediately, without waiting for the operation in progress to complete.
.TP 2m
\fB\-\-db\-timeout\fR=\fIDB_TIMEOUT\fR
(MySQL and PostgreSQL only) Cloud SQL instance operations timeout, which is the
sum of all database operations. Default value is 10 minutes and can be modified
to a maximum value of 24h.
.RE
.sp
.SH "GCLOUD WIDE FLAGS"
These flags are available to all commands: \-\-access\-token\-file, \-\-account,
\-\-billing\-project, \-\-configuration, \-\-flags\-file, \-\-flatten,
\-\-format, \-\-help, \-\-impersonate\-service\-account, \-\-log\-http,
\-\-project, \-\-quiet, \-\-trace\-token, \-\-user\-output\-enabled,
\-\-verbosity.
Run \fB$ gcloud help\fR for details.
.SH "NOTES"
These variants are also available:
.RS 2m
$ gcloud alpha sql instances switchover
.RE
.RS 2m
$ gcloud beta sql instances switchover
.RE