gcloud beta deployment-manager deployments cancel-preview

NAME
gcloud beta deployment-manager deployments cancel-preview - cancel a pending or running deployment preview
SYNOPSIS
gcloud beta deployment-manager deployments cancel-previewDEPLOYMENT_NAME[--async][--fingerprint=FINGERPRINT][GCLOUD_WIDE_FLAG]
DESCRIPTION
(BETA) This command will cancel a currently running or pendingpreview operation on a deployment.
EXAMPLES
To cancel a running operation on a deployment, run:
gcloudbetadeployment-managerdeploymentscancel-previewmy-deployment

To issue a cancel preview command without waiting for the operation to complete,run:

gcloudbetadeployment-managerdeploymentscancel-previewmy-deployment--async

To cancel a preview command providing a fingerprint:

gcloudbetadeployment-managerdeploymentscancel-previewmy-deployment--fingerprint=deployment-fingerprint

When a deployment preview is cancelled, the deployment itself is not deleted.

POSITIONAL ARGUMENTS
DEPLOYMENT_NAME
Deployment name.
FLAGS
--async
Return immediately, without waiting for the operation in progress to complete.
--fingerprint=FINGERPRINT
The fingerprint to use in requests to modify a deployment. If not specified, aget deployment request will be made to fetch the latest fingerprint. Afingerprint is a randomly generated value that is part of the update, stop, andcancel-preview request to perform optimistic locking. It is initially generatedby Deployment Manager and changes after every request to modify data. The latestfingerprint is printed when deployment data is modified.
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:
gclouddeployment-managerdeploymentscancel-preview
gcloudalphadeployment-managerdeploymentscancel-preview

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-05-07 UTC.