REST Resource: projects.locations.dataSourceReferences

Resource: DataSourceReference

DataSourceReference is a reference to a DataSource resource.

JSON representation
{
  "name": string,
  "dataSource": string,
  "createTime": string,
  "dataSourceBackupConfigState": enum (BackupConfigState),
  "dataSourceBackupCount": string,
  "dataSourceBackupConfigInfo": {
    object (DataSourceBackupConfigInfo)
  },
  "dataSourceGcpResourceInfo": {
    object (DataSourceGcpResourceInfo)
  }
}
Fields
name

string

Identifier. The resource name of the DataSourceReference. Format: projects/{project}/locations/{location}/dataSourceReferences/{data_source_reference}

dataSource

string

Output only. The resource name of the DataSource. Format: projects/{project}/locations/{location}/backupVaults/{backupVault}/dataSources/{dataSource}

createTime

string (Timestamp format)

Output only. The time when the DataSourceReference was created.

Uses RFC 3339, where generated output will always be Z-normalized and uses 0, 3, 6 or 9 fractional digits. Offsets other than "Z" are also accepted. Examples: "2014-10-02T15:01:23Z", "2014-10-02T15:01:23.045123456Z" or "2014-10-02T15:01:23+05:30".

dataSourceBackupConfigState

enum (BackupConfigState)

Output only. The backup configuration state of the DataSource.

dataSourceBackupCount

string (int64 format)

Output only. Number of backups in the DataSource.

dataSourceBackupConfigInfo

object (DataSourceBackupConfigInfo)

Output only. Information of backup configuration on the DataSource.

dataSourceGcpResourceInfo

object (DataSourceGcpResourceInfo)

Output only. The GCP resource that the DataSource is associated with.

DataSourceBackupConfigInfo

Information of backup configuration on the DataSource.

JSON representation
{
  "lastBackupState": enum (LastBackupState),
  "lastSuccessfulBackupConsistencyTime": string
}
Fields
lastBackupState

enum (LastBackupState)

Output only. The status of the last backup in this DataSource

lastSuccessfulBackupConsistencyTime

string (Timestamp format)

Output only. Timestamp of the last successful backup to this DataSource.

Uses RFC 3339, where generated output will always be Z-normalized and uses 0, 3, 6 or 9 fractional digits. Offsets other than "Z" are also accepted. Examples: "2014-10-02T15:01:23Z", "2014-10-02T15:01:23.045123456Z" or "2014-10-02T15:01:23+05:30".

DataSourceGcpResourceInfo

The GCP resource that the DataSource is associated with.

JSON representation
{
  "gcpResourcename": string,
  "type": string,
  "location": string,

  // Union field resource_properties can be only one of the following:
  "cloudSqlInstanceProperties": {
    object (CloudSqlInstanceDataSourceReferenceProperties)
  }
  // End of list of possible types for union field resource_properties.
}
Fields
gcpResourcename

string

Output only. The resource name of the GCP resource. Ex: projects/{project}/zones/{zone}/instances/{instance}

type

string

Output only. The type of the GCP resource. Ex: compute.googleapis.com/Instance

location

string

Output only. The location of the GCP resource. Ex: //"global"/"unspecified"

Union field resource_properties. The properties of the GCP resource. resource_properties can be only one of the following:
cloudSqlInstanceProperties

object (CloudSqlInstanceDataSourceReferenceProperties)

Output only. The properties of the Cloud SQL instance.

CloudSqlInstanceDataSourceReferenceProperties

CloudSqlInstanceDataSourceReferenceProperties represents the properties of a Cloud SQL resource that are stored in the DataSourceReference. .

JSON representation
{
  "name": string,
  "databaseInstalledVersion": string,
  "instanceCreateTime": string,
  "instanceTier": string
}
Fields
name

string

Output only. Name of the Cloud SQL instance backed up by the datasource. Format: projects/{project}/instances/{instance}

databaseInstalledVersion

string

Output only. The installed database version of the Cloud SQL instance.

instanceCreateTime

string (Timestamp format)

Output only. The instance creation timestamp.

Uses RFC 3339, where generated output will always be Z-normalized and uses 0, 3, 6 or 9 fractional digits. Offsets other than "Z" are also accepted. Examples: "2014-10-02T15:01:23Z", "2014-10-02T15:01:23.045123456Z" or "2014-10-02T15:01:23+05:30".

instanceTier

string

Output only. The tier (or machine type) for this instance. Example: db-custom-1-3840

Methods

fetchForResourceType

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

get

Gets details of a single DataSourceReference.