Method: googleServiceAccounts.get

Returns the Google service account that is used by Storage Transfer Service to access buckets in the project where transfers run or in other projects. Each Google service account is associated with one Google Cloud Platform Console project. Users should add this service account to the Google Cloud Storage bucket ACLs to grant access to Storage Transfer Service. This service account is created and owned by Storage Transfer Service and can only be used by Storage Transfer Service.

HTTP request

GET https://storagetransfer.googleapis.com/v1/googleServiceAccounts/{projectId}

The URL uses Google API HTTP annotation syntax.

Path parameters

Parameters
projectId

string

The ID of the Google Cloud Platform Console project that the Google service account is associated with. Required.

Request body

The request body must be empty.

Response body

If successful, the response body contains an instance of GoogleServiceAccount.

Authorization

Requires the following OAuth scope:

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

For more information, see the Auth Guide.

Monitor your resources on the go

Get the Google Cloud Console app to help you manage your projects.

Send feedback about...

Cloud Storage Documentation