revisions
Creates, updates, deletes, gets or lists a revisions
resource.
Overview
Name | revisions |
Type | Resource |
Id | google.backupdr.revisions |
Fields
The following fields are returned by SELECT
queries:
- get
- list
Successful response
Name | Datatype | Description |
---|---|---|
name | string | Output only. Identifier. The resource name of the BackupPlanRevision . Format: projects/{project}/locations/{location}/backupPlans/{backup_plan}/revisions/{revision} |
backupPlanSnapshot | object | A 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) |
createTime | string (google-datetime) | Output only. The timestamp that the revision was created. |
revisionId | string | Output only. The user friendly revision ID of the BackupPlanRevision . Example: v0, v1, v2, etc. |
state | string | Output only. Resource State |
Successful response
Name | Datatype | Description |
---|---|---|
name | string | Output only. Identifier. The resource name of the BackupPlanRevision . Format: projects/{project}/locations/{location}/backupPlans/{backup_plan}/revisions/{revision} |
backupPlanSnapshot | object | A 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) |
createTime | string (google-datetime) | Output only. The timestamp that the revision was created. |
revisionId | string | Output only. The user friendly revision ID of the BackupPlanRevision . Example: v0, v1, v2, etc. |
state | string | Output only. Resource State |
Methods
The following methods are available for this resource:
Name | Accessible by | Required Params | Optional Params | Description |
---|---|---|---|---|
get | select | projectsId , locationsId , backupPlansId , revisionsId | Gets details of a single BackupPlanRevision. | |
list | select | projectsId , locationsId , backupPlansId | pageSize , pageToken | Lists 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.
Name | Datatype | Description |
---|---|---|
backupPlansId | string | |
locationsId | string | |
projectsId | string | |
revisionsId | string | |
pageSize | integer (int32) | |
pageToken | string |
SELECT
examples
- get
- list
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;
Lists BackupPlanRevisions in a given project and location.
SELECT
name,
backupPlanSnapshot,
createTime,
revisionId,
state
FROM google.backupdr.revisions
WHERE projectsId = '{{ projectsId }}' -- required
AND locationsId = '{{ locationsId }}' -- required
AND backupPlansId = '{{ backupPlansId }}' -- required
AND pageSize = '{{ pageSize }}'
AND pageToken = '{{ pageToken }}';