Skip to main content

data_sources_access_token

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

Overview

Namedata_sources_access_token
TypeResource
Idgoogle.backupdr.data_sources_access_token

Fields

NameDatatypeDescription
expireTimestringThe token is valid until this time.
readLocationstringThe location in bucket that can be used for reading.
tokenstringThe downscoped token that was created.
writeLocationstringThe location in bucket that can be used for writing.

Methods

NameAccessible byRequired ParamsDescription
fetch_access_tokenSELECTbackupVaultsId, dataSourcesId, locationsId, projectsIdInternal only. Fetch access token for a given data source.

SELECT examples

Internal only. Fetch access token for a given data source.

SELECT
expireTime,
readLocation,
token,
writeLocation
FROM google.backupdr.data_sources_access_token
WHERE backupVaultsId = '{{ backupVaultsId }}'
AND dataSourcesId = '{{ dataSourcesId }}'
AND locationsId = '{{ locationsId }}'
AND projectsId = '{{ projectsId }}';