Method: projects.locations.dataSourceReferences.fetchForResourceType

Fetch DataSourceReferences for a given project, location and resource type.

HTTP request

GET https://backupdr.googleapis.com/v1/{parent=projects/*/locations/*}/dataSourceReferences:fetchForResourceType

The URL uses gRPC Transcoding syntax.

Path parameters

Parameters
parent

string

Required. The parent resource name. Format: projects/{project}/locations/{location}

Query parameters

Parameters
resourceType

string

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

pageSize

integer

Optional. The maximum number of DataSourceReferences to return. The service may return fewer than this value. If unspecified, at most 50 DataSourceReferences 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 dataSourceReferences.fetchForResourceType. Provide this to retrieve the subsequent page.

When paginating, all other parameters provided to dataSourceReferences.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: * dataSource * dataSourceGcpResourceInfo.gcp_resourcename * dataSourceBackupConfigState * dataSourceBackupCount * dataSourceBackupConfigInfo.last_backup_state * dataSourceGcpResourceInfo.gcp_resourcename * dataSourceGcpResourceInfo.type * dataSourceGcpResourceInfo.location * dataSourceGcpResourceInfo.cloud_sql_instance_properties.instance_create_time

orderBy

string

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

Supported fields: * name

Request body

The request body must be empty.

Response body

Response for the dataSourceReferences.fetchForResourceType method.

If successful, the response body contains data with the following structure:

JSON representation
{
  "dataSourceReferences": [
    {
      object (DataSourceReference)
    }
  ],
  "nextPageToken": string
}
Fields
dataSourceReferences[]

object (DataSourceReference)

The DataSourceReferences 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.