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

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

Methods

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

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 }}';