Cancel Preview

deployment_manager.cancel_preview
ActionGoogle Cloudconnection required

Calls Cloud Deployment Manager V2 POST /deploymentmanager/v2/projects/{project}/global/deployments/{deployment}/cancelPreview.

Cancels and removes the preview currently associated with the deployment.

Connection

Required
Yes — the node will not save without one
Auth type
OAuth 2.0
Providers
Google Cloud Deployment Manager V2
Secret shape
{"client_id", "client_secret", "refresh_token"}
Config it needs
project_id
Resolved by
config.connection_id, else node.connection_id

Configuration

3 fields, 1 required. A dotted path is a nested object and name[] an array of objects — the editor renders the same tree.

FieldTypeRequiredDefaultConstraintsExample
project_id
GCP project id (overrides connection).
stringNo———
deployment
Deployment id.
stringYes———
body
Request body (DeploymentsCancelPreviewRequest) as JSON.
objectNo———

Output

One shape.

result

FieldTypeExample
ok
boolean—
kind
string—
id
string—
creationTimestamp
string—
name
string—
zone
string—
clientOperationId
string—
{
  "clientOperationId": "",
  "creationTimestamp": "",
  "id": "",
  "kind": "",
  "name": "",
  "ok": false,
  "zone": ""
}

See Cancel Preview run in a workflow.

In a technical demo we add the Google Cloud Deployment Manager V2 connection, drop the node on the canvas and let Workflow Health pre-flight it before the first real run.