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:

Successful response

NameDatatypeDescription
namestringOutput only. Identifier. The resource name of the BackupPlanRevision. Format: projects/{project}/locations/{location}/backupPlans/{backup_plan}/revisions/{revision}
backupPlanSnapshotobjectA BackupPlan specifies some common fields, such as description as well as one or more BackupRule messages. Each BackupRule has a retention policy and defines a schedule by which the system is to perform backup workloads. (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

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;