A preview represents a set of actions Infra Manager would perform to move the resources towards the desired state as specified in the configuration.
JSON representation |
---|
{ "name": string, "createTime": string, "labels": { string: string, ... }, "state": enum ( |
Fields | |
---|---|
name |
Identifier. Resource name of the preview. Resource name can be user provided or server generated ID if unspecified. Format: |
createTime |
Output only. Time the preview was created. Uses RFC 3339, where generated output will always be Z-normalized and uses 0, 3, 6 or 9 fractional digits. Offsets other than "Z" are also accepted. Examples: |
labels |
Optional. User-defined labels for the preview. An object containing a list of |
state |
Output only. Current state of the preview. |
deployment |
Optional. Optional deployment reference. If specified, the preview will be performed using the provided deployment's current state and use any relevant fields from the deployment unless explicitly specified in the preview create request. |
previewMode |
Optional. Current mode of preview. |
serviceAccount |
Required. User-specified Service Account (SA) credentials to be used when previewing resources. Format: |
errorCode |
Output only. Code describing any errors that may have occurred. |
errorStatus |
Output only. Additional information regarding the current state. |
build |
Output only. Cloud Build instance UUID associated with this preview. |
tfErrors[] |
Output only. Summary of errors encountered during Terraform preview. It has a size limit of 10, i.e. only top 10 errors will be summarized here. |
errorLogs |
Output only. Link to tf-error.ndjson file, which contains the full list of the errors encountered during a Terraform preview. Format: |
previewArtifacts |
Output only. Artifacts from preview. |
logs |
Output only. Location of preview logs in |
tfVersion |
Output only. The current Terraform version set on the preview. It is in the format of "Major.Minor.Patch", for example, "1.3.10". |
annotations |
Optional. Arbitrary key-value metadata storage e.g. to help client tools identify preview during automation. See https://google.aip.dev/148#annotations for details on format and size limitations. An object containing a list of |
Union field blueprint . Blueprint to preview. blueprint can be only one of the following: |
|
terraformBlueprint |
The terraform blueprint to preview. |
artifactsGcsBucket |
Optional. User-defined location of Cloud Build logs, artifacts, and in Google Cloud Storage. Format: |
workerPool |
Optional. The user-specified Worker Pool resource in which the Cloud Build job will execute. Format projects/{project}/locations/{location}/workerPools/{workerPoolId} If this field is unspecified, the default Cloud Build worker pool will be used. If omitted and deployment resource ref provided has workerPool defined, that worker pool is used. |
tfVersionConstraint |
Optional. The user-specified Terraform version constraint. Example: "=1.3.10". |
PreviewArtifacts
Artifacts created by preview.
JSON representation |
---|
{ "content": string, "artifacts": string } |
Fields | |
---|---|
content |
Output only. Location of a blueprint copy and other content in Google Cloud Storage. Format: |
artifacts |
Output only. Location of artifacts in Google Cloud Storage. Format: |