- HTTP request
- Path parameters
- Request body
- Response body
- Authorization scopes
- IAM Permissions
- Try it!
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 |
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 | |
---|---|
generation |
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 | |
---|---|
read |
The location in bucket that can be used for reading. |
write |
The location in bucket that can be used for writing. |
token |
The downscoped token that was created. |
expire |
The token is valid until this time. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: |
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.