Skip to main content

backups_for_resource_type

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

Overview

Namebackups_for_resource_type
TypeResource
Idgoogle.backupdr.backups_for_resource_type

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
backupsarrayThe Backups from the specified parent.
nextPageTokenstringA token, which can be sent as page_token to retrieve the next page. If this field is omitted, there are no subsequent pages.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
fetch_for_resource_typeselectprojectsId, locationsId, backupVaultsId, dataSourcesIdresourceType, pageSize, pageToken, filter, orderBy, viewFetch Backups for a given resource type.

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
backupVaultsIdstring
dataSourcesIdstring
locationsIdstring
projectsIdstring
filterstring
orderBystring
pageSizeinteger (int32)
pageTokenstring
resourceTypestring
viewstring

SELECT examples

Fetch Backups for a given resource type.

SELECT
backups,
nextPageToken
FROM google.backupdr.backups_for_resource_type
WHERE projectsId = '{{ projectsId }}' -- required
AND locationsId = '{{ locationsId }}' -- required
AND backupVaultsId = '{{ backupVaultsId }}' -- required
AND dataSourcesId = '{{ dataSourcesId }}' -- required
AND resourceType = '{{ resourceType }}'
AND pageSize = '{{ pageSize }}'
AND pageToken = '{{ pageToken }}'
AND filter = '{{ filter }}'
AND orderBy = '{{ orderBy }}'
AND view = '{{ view }}'
;