revisions
Creates, updates, deletes, gets or lists a revisions resource.
Overview
| Name | revisions |
| Type | Resource |
| Id | google.config.revisions |
Fields
The following fields are returned by SELECT queries:
- get
- list
| Name | Datatype | Description |
|---|---|---|
name | string | Identifier. The name of the deployment group revision. Format: 'projects/{project_id}/locations/{location}/deploymentGroups/{deployment_group}/revisions/{revision}'. |
alternativeIds | array | Output only. The alternative IDs of the deployment group revision. |
createTime | string (google-datetime) | Output only. Time when the deployment group revision was created. |
snapshot | object | A DeploymentGroup is a collection of DeploymentUnits that in a DAG-like structure. (id: DeploymentGroup) |
| Name | Datatype | Description |
|---|---|---|
name | string | Identifier. The name of the deployment group revision. Format: 'projects/{project_id}/locations/{location}/deploymentGroups/{deployment_group}/revisions/{revision}'. |
alternativeIds | array | Output only. The alternative IDs of the deployment group revision. |
createTime | string (google-datetime) | Output only. Time when the deployment group revision was created. |
snapshot | object | A DeploymentGroup is a collection of DeploymentUnits that in a DAG-like structure. (id: DeploymentGroup) |
Methods
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
get | select | projectsId, locationsId, deploymentGroupsId, revisionsId | Gets details about a DeploymentGroupRevision. | |
list | select | projectsId, locationsId, deploymentGroupsId | pageSize, pageToken | Lists DeploymentGroupRevisions in a given DeploymentGroup. |
export_state | exec | projectsId, locationsId, deploymentsId, revisionsId | Exports 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.
| Name | Datatype | Description |
|---|---|---|
deploymentGroupsId | string | |
deploymentsId | string | |
locationsId | string | |
projectsId | string | |
revisionsId | string | |
pageSize | integer (int32) | |
pageToken | string |
SELECT examples
- get
- list
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
;
Lists DeploymentGroupRevisions in a given DeploymentGroup.
SELECT
name,
alternativeIds,
createTime,
snapshot
FROM google.config.revisions
WHERE projectsId = '{{ projectsId }}' -- required
AND locationsId = '{{ locationsId }}' -- required
AND deploymentGroupsId = '{{ deploymentGroupsId }}' -- required
AND pageSize = '{{ pageSize }}'
AND pageToken = '{{ pageToken }}'
;
Lifecycle Methods
- export_state
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
;