Skip to main content

resource_drifts

Creates, updates, deletes, gets or lists a resource_drifts resource.

Overview

Nameresource_drifts
TypeResource
Idgoogle.config.resource_drifts

Fields

The following fields are returned by SELECT queries:

Successful response

NameDatatypeDescription
namestringIdentifier. The name of the resource drift. Format: 'projects/{project_id}/locations/{location}/previews/{preview}/resourceDrifts/{resource_drift}'.
propertyDriftsarrayOutput only. The property drifts of the resource drift.
terraformInfoobjectOutput only. Terraform info of the resource drift. (id: ResourceDriftTerraformInfo)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectprojectsId, locationsId, previewsId, resourceDriftsIdGet a ResourceDrift for a given preview.
listselectprojectsId, locationsId, previewsIdpageSize, pageToken, filter, orderByList ResourceDrifts for a given preview.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
locationsIdstring
previewsIdstring
projectsIdstring
resourceDriftsIdstring
filterstring
orderBystring
pageSizeinteger (int32)
pageTokenstring

SELECT examples

Get a ResourceDrift for a given preview.

SELECT
name,
propertyDrifts,
terraformInfo
FROM google.config.resource_drifts
WHERE projectsId = '{{ projectsId }}' -- required
AND locationsId = '{{ locationsId }}' -- required
AND previewsId = '{{ previewsId }}' -- required
AND resourceDriftsId = '{{ resourceDriftsId }}' -- required;