Skip to main content

data_source_references

Creates, updates, deletes, gets or lists a data_source_references resource.

Overview

Namedata_source_references
TypeResource
Idgoogle.backupdr.data_source_references

Fields

The following fields are returned by SELECT queries:

Successful response

NameDatatypeDescription
namestringIdentifier. The resource name of the DataSourceReference. Format: projects/{project}/locations/{location}/dataSourceReferences/{data_source_reference}
createTimestring (google-datetime)Output only. The time when the DataSourceReference was created.
dataSourcestringOutput only. The resource name of the DataSource. Format: projects/{project}/locations/{location}/backupVaults/{backupVault}/dataSources/{dataSource}
dataSourceBackupConfigInfoobjectOutput only. Information of backup configuration on the DataSource. (id: DataSourceBackupConfigInfo)
dataSourceBackupConfigStatestringOutput only. The backup configuration state of the DataSource.
dataSourceBackupCountstring (int64)Output only. Number of backups in the DataSource.
dataSourceGcpResourceInfoobjectOutput only. The GCP resource that the DataSource is associated with. (id: DataSourceGcpResourceInfo)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectprojectsId, locationsId, dataSourceReferencesIdGets details of a single DataSourceReference.
fetch_for_resource_typeselectprojectsId, locationsIdresourceType, pageSize, pageToken, filter, orderByFetch DataSourceReferences for a given project, location and 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.

NameDatatypeDescription
dataSourceReferencesIdstring
locationsIdstring
projectsIdstring
filterstring
orderBystring
pageSizeinteger (int32)
pageTokenstring
resourceTypestring

SELECT examples

Gets details of a single DataSourceReference.

SELECT
name,
createTime,
dataSource,
dataSourceBackupConfigInfo,
dataSourceBackupConfigState,
dataSourceBackupCount,
dataSourceGcpResourceInfo
FROM google.backupdr.data_source_references
WHERE projectsId = '{{ projectsId }}' -- required
AND locationsId = '{{ locationsId }}' -- required
AND dataSourceReferencesId = '{{ dataSourceReferencesId }}' -- required;