Skip to main content

revisions

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

Overview​

Namerevisions
TypeResource
Idgoogle.backupdr.revisions

Fields​

The following fields are returned by SELECT queries:

NameDatatypeDescription
namestringOutput only. Identifier. The resource name of the BackupPlanRevision. Format: projects/{project}/locations/{location}/backupPlans/{backup_plan}/revisions/{revision}
backupPlanSnapshotobjectThe Backup Plan being encompassed by this revision. (id: BackupPlan)
createTimestring (google-datetime)Output only. The timestamp that the revision was created.
revisionIdstringOutput only. The user friendly revision ID of the BackupPlanRevision. Example: v0, v1, v2, etc.
statestringOutput only. Resource State (STATE_UNSPECIFIED, CREATING, ACTIVE, DELETING, INACTIVE)

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectprojectsId, locationsId, backupPlansId, revisionsIdGets details of a single BackupPlanRevision.
listselectprojectsId, locationsId, backupPlansIdpageSize, pageTokenLists BackupPlanRevisions in a given project and location.

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

SELECT examples​

Gets details of a single BackupPlanRevision.

SELECT
name,
backupPlanSnapshot,
createTime,
revisionId,
state
FROM google.backupdr.revisions
WHERE projectsId = '{{ projectsId }}' -- required
AND locationsId = '{{ locationsId }}' -- required
AND backupPlansId = '{{ backupPlansId }}' -- required
AND revisionsId = '{{ revisionsId }}' -- required
;