- HTTP request
- Path parameters
- Query parameters
- Request body
- Response body
- Authorization scopes
- Try it!
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 |
Required. The parent resource name. Format: projects/{project}/locations/{location} |
Query parameters
Parameters | |
---|---|
resourceType |
Required. The type of the GCP resource. Ex: sql.googleapis.com/Instance |
pageSize |
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 |
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: * 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 |
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 ( |
Fields | |
---|---|
dataSourceReferences[] |
The DataSourceReferences 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.