Get Preview

infra_manager.get_preview
ActionGoogle Cloudconnection required

Calls config v1 GET /v1/projects/{projectsId}/locations/{locationsId}/previews/{previewsId}.

Gets details about a Preview.

Connection

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

Configuration

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

FieldTypeRequiredDefaultConstraintsExample
location
Location or region; taken from the connection when unset.
stringNo———
preview
Preview name or id.
stringYes———

Output

One shape.

result

Extra keys beyond the ones listed can appear.

FieldTypeExample
annotations
object—
artifactsGcsBucket
string—
build
string—
createTime
string—
deployment
string—
errorCode
string—
errorLogs
string—
errorStatus
object—
labels
object—
logs
string—
name
string—
previewArtifacts
object—
previewMode
string—
providerConfig
object—
serviceAccount
string—
state
string—
terraformBlueprint
object—
tfErrors
array—
tfVersion
string—
tfVersionConstraint
string—
workerPool
string—
{
  "annotations": {},
  "artifactsGcsBucket": "",
  "build": "",
  "createTime": "",
  "deployment": "",
  "errorCode": "",
  "errorLogs": "",
  "errorStatus": {},
  "labels": {},
  "logs": "",
  "name": "",
  "previewArtifacts": {},
  "previewMode": "",
  "providerConfig": {},
  "serviceAccount": "",
  "state": "",
  "terraformBlueprint": {},
  "tfErrors": [],
  "tfVersion": "",
  "tfVersionConstraint": "",
  "workerPool": ""
}

See Get Preview run in a workflow.

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