backups_for_resource_type
Creates, updates, deletes, gets or lists a backups_for_resource_type resource.
Overview
| Name | backups_for_resource_type |
| Type | Resource |
| Id | google.backupdr.backups_for_resource_type |
Fields
The following fields are returned by SELECT queries:
- fetch_for_resource_type
| Name | Datatype | Description |
|---|---|---|
backups | array | The Backups from the specified parent. |
nextPageToken | string | A 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:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
fetch_for_resource_type | select | projectsId, locationsId, backupVaultsId, dataSourcesId | resourceType, pageSize, pageToken, filter, orderBy, view | Fetch 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.
| Name | Datatype | Description |
|---|---|---|
backupVaultsId | string | |
dataSourcesId | string | |
locationsId | string | |
projectsId | string | |
filter | string | |
orderBy | string | |
pageSize | integer (int32) | |
pageToken | string | |
resourceType | string | |
view | string |
SELECT examples
- fetch_for_resource_type
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 }}'
;