File: //snap/google-cloud-cli/current/help/man/man1/gcloud_container_operations_cancel.1
.TH "GCLOUD_CONTAINER_OPERATIONS_CANCEL" 1
.SH "NAME"
.HP
gcloud container operations cancel \- cancel a running operation
.SH "SYNOPSIS"
.HP
\f5gcloud container operations cancel\fR \fIOPERATION_ID\fR [\fB\-\-location\fR=\fILOCATION\fR\ |\ \fB\-\-region\fR=\fIREGION\fR\ |\ \fB\-\-zone\fR=\fIZONE\fR,\ \fB\-z\fR\ \fIZONE\fR] [\fIGCLOUD_WIDE_FLAG\ ...\fR]
.SH "DESCRIPTION"
Cancel a running operation.
Cancel is a best\-effort method for aborting a running operation. Operations
that have already completed can not be cancelled. If the operation has passed
the "point of no\-return", cancel will have no effect.
An example of "point of no\-return" in the context of Upgrade operations would
be if all the nodes have been upgraded but the operation hasn't been marked as
complete.
.SH "EXAMPLES"
To cancel an operation, run:
.RS 2m
$ gcloud container operations cancel sample\-operation\-id
.RE
.SH "POSITIONAL ARGUMENTS"
.RS 2m
.TP 2m
\fIOPERATION_ID\fR
The operation id to cancel.
.RE
.sp
.SH "FLAGS"
.RS 2m
.TP 2m
At most one of these can be specified:
.RS 2m
.TP 2m
\fB\-\-location\fR=\fILOCATION\fR
Compute zone or region (e.g. us\-central1\-a or us\-central1) for the cluster.
Overrides the default compute/region or compute/zone value for this command
invocation. Prefer using this flag over the \-\-region or \-\-zone flags.
.TP 2m
\fB\-\-region\fR=\fIREGION\fR
Compute region (e.g. us\-central1) for a regional cluster. Overrides the default
compute/region property value for this command invocation.
.TP 2m
\fB\-\-zone\fR=\fIZONE\fR, \fB\-z\fR \fIZONE\fR
Compute zone (e.g. us\-central1\-a) for a zonal cluster. Overrides the default
compute/zone property value for this command invocation.
.RE
.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 container operations cancel
.RE
.RS 2m
$ gcloud beta container operations cancel
.RE