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.

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

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.

Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025年08月28日 UTC.