HEX
Server: Apache/2.4.65 (Ubuntu)
System: Linux ielts-store-v2 6.8.0-1036-gcp #38~22.04.1-Ubuntu SMP Thu Aug 14 01:19:18 UTC 2025 x86_64
User: root (0)
PHP: 7.2.34-54+ubuntu20.04.1+deb.sury.org+1
Disabled: pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,
Upload Files
File: //snap/google-cloud-cli/current/help/man/man1/gcloud_alpha_spanner_operations_cancel.1
.TH "GCLOUD_ALPHA_SPANNER_OPERATIONS_CANCEL" 1



.SH "NAME"
.HP
gcloud alpha spanner operations cancel \- cancel a Cloud Spanner operation



.SH "SYNOPSIS"
.HP
\f5gcloud alpha 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"

\fB(ALPHA)\fR Cancel a Cloud Spanner operation.



.SH "EXAMPLES"

To cancel an instance operation with ID \fIauto_12345, run:

.RS 2m
$ gcloud alpha spanner operations cancel _auto_12345 \e
    \-\-instance=my\-instance\-id
.RE

To cancel a database operation with ID \fRauto_12345, run:

.RS 2m
$ gcloud alpha 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 alpha 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 alpha 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"

This command is currently in alpha and might change without notice. If this
command fails with API permission errors despite specifying the correct project,
you might be trying to access an API with an invitation\-only early access
allowlist. These variants are also available:

.RS 2m
$ gcloud spanner operations cancel
.RE

.RS 2m
$ gcloud beta spanner operations cancel
.RE