# REST Resource: projects.locations.previews.resourceDrifts

- [Resource: ResourceDrift](https://docs.cloud.google.com/infrastructure-manager/docs/reference/rest/v1/projects.locations.previews.resourceDrifts#ResourceDrift)
  - [JSON representation](https://docs.cloud.google.com/infrastructure-manager/docs/reference/rest/v1/projects.locations.previews.resourceDrifts#ResourceDrift.SCHEMA_REPRESENTATION)
- [ResourceDriftTerraformInfo](https://docs.cloud.google.com/infrastructure-manager/docs/reference/rest/v1/projects.locations.previews.resourceDrifts#ResourceDriftTerraformInfo)
  - [JSON representation](https://docs.cloud.google.com/infrastructure-manager/docs/reference/rest/v1/projects.locations.previews.resourceDrifts#ResourceDriftTerraformInfo.SCHEMA_REPRESENTATION)
- [PropertyDrift](https://docs.cloud.google.com/infrastructure-manager/docs/reference/rest/v1/projects.locations.previews.resourceDrifts#PropertyDrift)
  - [JSON representation](https://docs.cloud.google.com/infrastructure-manager/docs/reference/rest/v1/projects.locations.previews.resourceDrifts#PropertyDrift.SCHEMA_REPRESENTATION)
- [Methods](https://docs.cloud.google.com/infrastructure-manager/docs/reference/rest/v1/projects.locations.previews.resourceDrifts#METHODS_SUMMARY)

## Resource: ResourceDrift

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

| JSON representation |
|---|
| ``` { "name": string, "terraformInfo": { object (`https://docs.cloud.google.com/infrastructure-manager/docs/reference/rest/v1/projects.locations.previews.resourceDrifts#ResourceDriftTerraformInfo`) }, "propertyDrifts": [ { object (`https://docs.cloud.google.com/infrastructure-manager/docs/reference/rest/v1/projects.locations.previews.resourceDrifts#PropertyDrift`) } ] } ``` |

| Fields ||
|---|---|
| `name` | `string` Identifier. The name of the resource drift. Format: 'projects/{projectId}/locations/{location}/previews/{preview}/resourceDrifts/{resourceDrift}'. |
| `terraformInfo` | ``object (`https://docs.cloud.google.com/infrastructure-manager/docs/reference/rest/v1/projects.locations.previews.resourceDrifts#ResourceDriftTerraformInfo`)`` Output only. Terraform info of the resource drift. |
| `propertyDrifts[]` | ``object (`https://docs.cloud.google.com/infrastructure-manager/docs/reference/rest/v1/projects.locations.previews.resourceDrifts#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 (`https://protobuf.dev/reference/protobuf/google.protobuf#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 (`https://protobuf.dev/reference/protobuf/google.protobuf#value` format)`` Output only. Representations of the object value after the actions. |

| ## Methods ||
|---|---|
| ### `https://docs.cloud.google.com/infrastructure-manager/docs/reference/rest/v1/projects.locations.previews.resourceDrifts/get` | Get a ResourceDrift for a given preview. |
| ### `https://docs.cloud.google.com/infrastructure-manager/docs/reference/rest/v1/projects.locations.previews.resourceDrifts/list` | List ResourceDrifts for a given preview. |