Skip to main content

resource_changes

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

Overview

Nameresource_changes
TypeResource
Idgoogle.config.resource_changes

Fields

The following fields are returned by SELECT queries:

Successful response

NameDatatypeDescription
namestringIdentifier. The name of the resource change. Format: 'projects/{project_id}/locations/{location}/previews/{preview}/resourceChanges/{resource_change}'.
intentstringOutput only. The intent of the resource change.
propertyChangesarrayOutput only. The property changes of the resource change.
terraformInfoobjectOutput only. Terraform info of the resource change. (id: ResourceChangeTerraformInfo)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectprojectsId, locationsId, previewsId, resourceChangesIdGet a ResourceChange for a given preview.
listselectprojectsId, locationsId, previewsIdpageSize, pageToken, filter, orderByLists ResourceChanges 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
resourceChangesIdstring
filterstring
orderBystring
pageSizeinteger (int32)
pageTokenstring

SELECT examples

Get a ResourceChange for a given preview.

SELECT
name,
intent,
propertyChanges,
terraformInfo
FROM google.config.resource_changes
WHERE projectsId = '{{ projectsId }}' -- required
AND locationsId = '{{ locationsId }}' -- required
AND previewsId = '{{ previewsId }}' -- required
AND resourceChangesId = '{{ resourceChangesId }}' -- required;