Method: projects.locations.backupVaults.dataSources.fetchAccessToken

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

HTTP request

POST https://backupdr.googleapis.com/v1/{name=projects/*/locations/*/backupVaults/*/dataSources/*}:fetchAccessToken

The URL uses gRPC Transcoding syntax.

Path parameters

Parameters
name

string

Required. The resource name for the location for which static IPs should be returned. Must be in the format 'projects/*/locations/*/backupVaults/*/dataSources'.

Request body

The request body contains data with the following structure:

JSON representation
{
  "generationId": integer
}
Fields
generationId

integer

Required. The generation of the backup to update.

Response body

Response message for dataSources.fetchAccessToken.

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

JSON representation
{
  "readLocation": string,
  "writeLocation": string,
  "token": string,
  "expireTime": string
}
Fields
readLocation

string

The location in bucket that can be used for reading.

writeLocation

string

The location in bucket that can be used for writing.

token

string

The downscoped token that was created.

expireTime

string (Timestamp format)

The token is valid until this time.

A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: "2014-10-02T15:01:23Z" and "2014-10-02T15:01:23.045123456Z".

Authorization scopes

Requires the following OAuth scope:

  • https://www.googleapis.com/auth/cloud-platform

For more information, see the Authentication Overview.

IAM Permissions

Requires the following IAM permission on the name resource:

  • backupdr.bvdataSources.fetchAccessToken

For more information, see the IAM documentation.