Method: projects.locations.backupVaults.dataSources.backups.fetchForResourceType

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

string

Required. Datasources are the parent resource for the backups. Format: projects/{project}/locations/{location}/backupVaults/{backupVaultId}/dataSources/{datasourceId}

Query parameters

Parameters
resourceType

string

Required. The type of the GCP resource. Ex: sqladmin.googleapis.com/Instance

pageSize

integer

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

string

Optional. A page token, received from a previous call of backups.fetchForResourceType. Provide this to retrieve the subsequent page.

When paginating, all other parameters provided to backups.fetchForResourceType must match the call that provided the page token.

filter

string

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

string

Optional. A comma-separated list of fields to order by, sorted in ascending order. Use "desc" after a field name for descending.

view

enum (BackupView)

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 (Backup)
    }
  ],
  "nextPageToken": string
}
Fields
backups[]

object (Backup)

The Backups from the specified parent.

nextPageToken

string

A token, which can be sent as pageToken to retrieve the next page. If this field is omitted, there are no subsequent pages.

Authorization scopes

Requires the following OAuth scope:

  • https://www.googleapis.com/auth/cloud-platform

For more information, see the Authentication Overview.