Skip to main content

google_service_accounts

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

Overview

Namegoogle_service_accounts
TypeResource
Idgoogle.storagetransfer.google_service_accounts

Fields

The following fields are returned by SELECT queries:

Successful response

NameDatatypeDescription
accountEmailstringEmail address of the service account.
subjectIdstringUnique identifier for the service account.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectprojectIdReturns 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 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.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
projectIdstring

SELECT examples

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 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.

SELECT
accountEmail,
subjectId
FROM google.storagetransfer.google_service_accounts
WHERE projectId = '{{ projectId }}' -- required;