- HTTP request
- Path parameters
- Query parameters
- Request body
- Response body
- Authorization scopes
- Try it!
Fetch Backups for a given resource type.
HTTP request
GET https://backupdr.googleapis.com/v1/{parent=projects/*/locations/*/backupVaults/*/dataSources/*}/backups:fetchForResourceType
The URL uses gRPC Transcoding syntax.
Path parameters
| Parameters | |
|---|---|
parent |
Required. Datasources are the parent resource for the backups. Format: projects/{project}/locations/{location}/backupVaults/{backupVaultId}/dataSources/{datasourceId} |
Query parameters
| Parameters | |
|---|---|
resourceType |
Required. The type of the GCP resource. Ex: sqladmin.googleapis.com/Instance |
pageSize |
Optional. The maximum number of Backups to return. The service may return fewer than this value. If unspecified, at most 50 Backups will be returned. The maximum value is 100; values above 100 will be coerced to 100. |
pageToken |
Optional. A page token, received from a previous call of When paginating, all other parameters provided to |
filter |
Optional. A filter expression that filters the results fetched in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. Supported fields: |
orderBy |
Optional. A comma-separated list of fields to order by, sorted in ascending order. Use "desc" after a field name for descending. |
view |
Optional. This parameter is used to specify the view of the backup. If not specified, the default view is BASIC. |
Request body
The request body must be empty.
Response body
Response for the backups.fetchForResourceType method.
If successful, the response body contains data with the following structure:
| JSON representation |
|---|
{
"backups": [
{
object ( |
| Fields | |
|---|---|
backups[] |
The Backups from the specified parent. |
nextPageToken |
A token, which can be sent as |
Authorization scopes
Requires the following OAuth scope:
https://www.googleapis.com/auth/cloud-platform
For more information, see the Authentication Overview.