google_service_accounts
Creates, updates, deletes, gets or lists a google_service_accounts
resource.
Overview
Name | google_service_accounts |
Type | Resource |
Id | google.storagetransfer.google_service_accounts |
Fields
Name | Datatype | Description |
---|---|---|
accountEmail | string | Email address of the service account. |
subjectId | string | Unique identifier for the service account. |
Methods
Name | Accessible by | Required Params | Description |
---|---|---|---|
get | SELECT | projectId | 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
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 }}';