File: //snap/google-cloud-cli/current/help/man/man1/gcloud_spanner_operations_cancel.1
.TH "GCLOUD_SPANNER_OPERATIONS_CANCEL" 1
.SH "NAME"
.HP
gcloud spanner operations cancel \- cancel a Cloud Spanner operation
.SH "SYNOPSIS"
.HP
\f5gcloud spanner operations cancel\fR \fIOPERATION\-ID\fR (\fB\-\-instance\fR=\fIINSTANCE\fR\ |\ \fB\-\-instance\-config\fR=\fIINSTANCE_CONFIG\fR) [\fB\-\-backup\fR=\fIBACKUP\fR] [\fB\-\-database\fR=\fIDATABASE\fR] [\fB\-\-instance\-partition\fR=\fIINSTANCE_PARTITION\fR] [\fIGCLOUD_WIDE_FLAG\ ...\fR]
.SH "DESCRIPTION"
Cancel a Cloud Spanner operation.
.SH "EXAMPLES"
To cancel an instance operation with ID \fIauto_12345, run:
.RS 2m
$ gcloud spanner operations cancel _auto_12345 \e
\-\-instance=my\-instance\-id
.RE
To cancel a database operation with ID \fRauto_12345, run:
.RS 2m
$ gcloud spanner operations cancel _auto_12345 \e
\-\-instance=my\-instance\-id \-\-database=my\-database\-id
.RE
To cancel a backup operation with ID \fIauto_12345, run:
.RS 2m
$ gcloud spanner operations cancel _auto_12345 \e
\-\-instance=my\-instance\-id \-\-backup=my\-backup\-id
.RE
To cancel an instance partition operation with ID auto_12345, run:
.RS 2m
$ gcloud spanner operations cancel auto_12345 \e
\-\-instance=my\-instance\-id \-\-instance\-partition=my\-partition\-id
.RE
\fR
.SH "POSITIONAL ARGUMENTS"
.RS 2m
.TP 2m
\fIOPERATION\-ID\fR
ID of the operation
.RE
.sp
.SH "REQUIRED FLAGS"
.RS 2m
.TP 2m
Exactly one of these must be specified:
.RS 2m
.TP 2m
\fB\-\-instance\fR=\fIINSTANCE\fR
The ID of the instance the operation is executing on.
.TP 2m
\fB\-\-instance\-config\fR=\fIINSTANCE_CONFIG\fR
The ID of the instance configuration the operation is executing on.
.RE
.RE
.sp
.SH "OPTIONAL FLAGS"
.RS 2m
.TP 2m
\fB\-\-backup\fR=\fIBACKUP\fR
For a backup operation, the name of the backup the operation is executing on.
.TP 2m
\fB\-\-database\fR=\fIDATABASE\fR
For a database operation, the name of the database the operation is executing
on.
.TP 2m
\fB\-\-instance\-partition\fR=\fIINSTANCE_PARTITION\fR
For an instance partition operation, the name of the instance partition the
operation is executing on.
.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 spanner operations cancel
.RE
.RS 2m
$ gcloud beta spanner operations cancel
.RE