resource_drifts
Creates, updates, deletes, gets or lists a resource_drifts resource.
Overview
| Name | resource_drifts |
| Type | Resource |
| Id | google.config.resource_drifts |
Fields
The following fields are returned by SELECT queries:
- get
- list
| Name | Datatype | Description |
|---|---|---|
name | string | Identifier. The name of the resource drift. Format: 'projects/{project_id}/locations/{location}/previews/{preview}/resourceDrifts/{resource_drift}'. |
propertyDrifts | array | Output only. The property drifts of the resource drift. |
terraformInfo | object | Output only. Terraform info of the resource drift. (id: ResourceDriftTerraformInfo) |
| Name | Datatype | Description |
|---|---|---|
name | string | Identifier. The name of the resource drift. Format: 'projects/{project_id}/locations/{location}/previews/{preview}/resourceDrifts/{resource_drift}'. |
propertyDrifts | array | Output only. The property drifts of the resource drift. |
terraformInfo | object | Output only. Terraform info of the resource drift. (id: ResourceDriftTerraformInfo) |
Methods
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
get | select | projectsId, locationsId, previewsId, resourceDriftsId | Get a ResourceDrift for a given preview. | |
list | select | projectsId, locationsId, previewsId | pageSize, pageToken, filter, orderBy | List 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.
| Name | Datatype | Description |
|---|---|---|
locationsId | string | |
previewsId | string | |
projectsId | string | |
resourceDriftsId | string | |
filter | string | |
orderBy | string | |
pageSize | integer (int32) | |
pageToken | string |
SELECT examples
- get
- list
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
;
List ResourceDrifts 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 pageSize = '{{ pageSize }}'
AND pageToken = '{{ pageToken }}'
AND filter = '{{ filter }}'
AND orderBy = '{{ orderBy }}'
;