REST Resource: projects.locations.previews.resourceDrifts

Resource: ResourceDrift

A resource drift represents a drift to a resource in the state file.

JSON representation
{
  "name": string,
  "terraformInfo": {
    object (ResourceDriftTerraformInfo)
  },
  "propertyDrifts": [
    {
      object (PropertyDrift)
    }
  ]
}
Fields
name

string

Identifier. The name of the resource drift. Format: 'projects/{projectId}/locations/{location}/previews/{preview}/resourceDrifts/{resourceDrift}'.

terraformInfo

object (ResourceDriftTerraformInfo)

Output only. Terraform info of the resource drift.

propertyDrifts[]

object (PropertyDrift)

Output only. The property drifts of the resource drift.

ResourceDriftTerraformInfo

Terraform info of a ResourceChange.

JSON representation
{
  "address": string,
  "type": string,
  "resourceName": string,
  "provider": string
}
Fields
address

string

Output only. The address of the drifted resource.

type

string

Output only. The type of the drifted resource.

resourceName

string

Output only. TF resource name.

provider

string

Output only. The provider of the drifted resource.

PropertyDrift

A property drift represents a drift to a property in the state file.

JSON representation
{
  "path": string,
  "beforeSensitivePaths": [
    string
  ],
  "before": value,
  "afterSensitivePaths": [
    string
  ],
  "after": value
}
Fields
path

string

Output only. The path of the property drift.

beforeSensitivePaths[]

string

Output only. The paths of sensitive fields in before. Paths are relative to path.

before

value (Value format)

Output only. Representations of the object value before the actions.

afterSensitivePaths[]

string

Output only. The paths of sensitive fields in after. Paths are relative to path.

after

value (Value format)

Output only. Representations of the object value after the actions.

Methods

get

Get a ResourceDrift for a given preview.

list

List ResourceDrifts for a given preview.