gcloud beta container operations cancel

NAME
gcloud beta container operations cancel - cancel a running operation
SYNOPSIS
gcloud beta container operations cancelOPERATION_ID[--location=LOCATION    |--region=REGION    |--zone=ZONE,-zZONE][GCLOUD_WIDE_FLAG]
DESCRIPTION
(BETA) Cancel a running operation.

Cancel is a best-effort method for aborting a running operation. Operations thathave 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 beif all the nodes have been upgraded but the operation hasn't been marked ascomplete.

Only node pool upgrade operations support cancellation.

EXAMPLES
To cancel an operation, run:
gcloudbetacontaineroperationscancelsample-operation-id
POSITIONAL ARGUMENTS
OPERATION_ID
The operation id to cancel.
FLAGS
At most one of these can be specified:
--location=LOCATION
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 commandinvocation. Prefer using this flag over the --region or --zone flags.
--region=REGION
Compute region (e.g. us-central1) for a regional cluster. Overrides the defaultcompute/region property value for this command invocation.
--zone=ZONE,-zZONE
Compute zone (e.g. us-central1-a) for a zonal cluster. Overrides the defaultcompute/zone property value for this command invocation.
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$gcloud help for details.

NOTES
This command is currently in beta and might change without notice. Thesevariants are also available:
gcloudcontaineroperationscancel
gcloudalphacontaineroperationscancel

Except as otherwise noted, the content of this page is licensed under theCreative Commons Attribution 4.0 License, and code samples are licensed under theApache 2.0 License. For details, see theGoogle Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025-11-04 UTC.