Stay organized with collections
Save and categorize content based on your preferences.
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.
Arguments
Parameters
projectId
string
Required. The ID of the Google Cloud Platform Console project that the Google service account is associated with.
Raised exceptions
Exceptions
ConnectionError
In case of a network problem (such as DNS failure or refused connection).
HttpError
If the response status is >= 400 (excluding 429 and 503).
TimeoutError
If a long-running operation takes longer to finish than the specified timeout limit.
TypeError
If an operation or function receives an argument of the wrong type.
ValueError
If an operation or function receives an argument of the right type but an inappropriate value. For example, a negative timeout.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-29 UTC."],[],[],null,["# Method: googleapis.storagetransfer.v1.googleServiceAccounts.get\n\nReturns the Google service account that is used by Storage Transfer\nService to access buckets in the project where transfers run or in other\nprojects. Each Google service account is associated with one Google\nCloud Platform Console project. Users should add this service account to\nthe Google Cloud Storage bucket ACLs to grant access to Storage Transfer\nService. This service account is created and owned by Storage Transfer\nService and can only be used by Storage Transfer Service.\n\nArguments\n---------\n\nRaised exceptions\n-----------------\n\nResponse\n--------\n\nIf successful, the response contains an instance of [`GoogleServiceAccount`](/workflows/docs/reference/googleapis/storagetransfer/v1/Overview#GoogleServiceAccount).\n\nSubworkflow snippet\n-------------------\n\nSome fields might be optional or required.\nTo identify required fields, refer to the [API documentation](https://cloud.google.com/storage-transfer/docs/reference/rest/v1/googleServiceAccounts/get). \n\n### YAML\n\n```yaml\n- get:\n call: googleapis.storagetransfer.v1.googleServiceAccounts.get\n args:\n projectId: ...\n result: getResult\n```\n\n### JSON\n\n```json\n[\n {\n \"get\": {\n \"call\": \"googleapis.storagetransfer.v1.googleServiceAccounts.get\",\n \"args\": {\n \"projectId\": \"...\"\n },\n \"result\": \"getResult\"\n }\n }\n]\n```"]]