返回 Storage Transfer Service 用于访问运行转移作业的项目或其他项目中的存储分区的 Google 服务账号。每个 Google 服务账号都与一个 Google Cloud 项目相关联。用户应将此服务账号添加到 Google Cloud Storage 存储分区 ACL 中,以便授予对 Storage Transfer Service 的访问权限。此服务账号由 Storage Transfer Service 创建并拥有,只能由 Storage Transfer Service 使用。
HTTP 请求
GET https://storagetransfer.googleapis.com/v1/googleServiceAccounts/{projectId}
[[["易于理解","easyToUnderstand","thumb-up"],["解决了我的问题","solvedMyProblem","thumb-up"],["其他","otherUp","thumb-up"]],[["很难理解","hardToUnderstand","thumb-down"],["信息或示例代码不正确","incorrectInformationOrSampleCode","thumb-down"],["没有我需要的信息/示例","missingTheInformationSamplesINeed","thumb-down"],["翻译问题","translationIssue","thumb-down"],["其他","otherDown","thumb-down"]],["最后更新时间 (UTC):2025-03-04。"],[],[],null,["# Method: googleServiceAccounts.get\n\nReturns 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.\n\n### HTTP request\n\n`GET https://storagetransfer.googleapis.com/v1/googleServiceAccounts/{projectId}`\n\nThe URL uses [gRPC Transcoding](https://google.aip.dev/127) syntax.\n\n### Path parameters\n\n### Request body\n\nThe request body must be empty.\n\n### Response body\n\nIf successful, the response body contains an instance of [GoogleServiceAccount](/storage-transfer/docs/reference/rest/v1/googleServiceAccounts#GoogleServiceAccount).\n\n### Authorization scopes\n\nRequires the following OAuth scope:\n\n- `https://www.googleapis.com/auth/cloud-platform`\n\nFor more information, see the [Authentication Overview](/docs/authentication#authorization-gcp)."]]