Skip to main content

revisions

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

Overview​

Namerevisions
TypeResource
Idgoogle.config.revisions

Fields​

The following fields are returned by SELECT queries:

NameDatatypeDescription
namestringIdentifier. The name of the deployment group revision. Format: 'projects/{project_id}/locations/{location}/deploymentGroups/{deployment_group}/revisions/{revision}'.
alternativeIdsarrayOutput only. The alternative IDs of the deployment group revision.
createTimestring (google-datetime)Output only. Time when the deployment group revision was created.
snapshotobjectOutput only. The snapshot of the deployment group at this revision. (id: DeploymentGroup)

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectprojectsId, locationsId, deploymentGroupsId, revisionsIdGets details about a DeploymentGroupRevision.
listselectprojectsId, locationsId, deploymentGroupsIdpageSize, pageTokenLists DeploymentGroupRevisions in a given DeploymentGroup.
export_stateexecprojectsId, locationsId, deploymentsId, revisionsIdExports Terraform state file from a given revision.

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
deploymentGroupsIdstring
deploymentsIdstring
locationsIdstring
projectsIdstring
revisionsIdstring
pageSizeinteger (int32)
pageTokenstring

SELECT examples​

Gets details about a DeploymentGroupRevision.

SELECT
name,
alternativeIds,
createTime,
snapshot
FROM google.config.revisions
WHERE projectsId = '{{ projectsId }}' -- required
AND locationsId = '{{ locationsId }}' -- required
AND deploymentGroupsId = '{{ deploymentGroupsId }}' -- required
AND revisionsId = '{{ revisionsId }}' -- required
;

Lifecycle Methods​

Exports Terraform state file from a given revision.

EXEC google.config.revisions.export_state
@projectsId='{{ projectsId }}' --required,
@locationsId='{{ locationsId }}' --required,
@deploymentsId='{{ deploymentsId }}' --required,
@revisionsId='{{ revisionsId }}' --required
;