Method: googleServiceAccounts.get

返回 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}

网址采用 gRPC 转码语法。

路径参数

参数
projectId

string

必需。Google 服务账号关联的 Google Cloud 项目的 ID。

必须对指定的资源 projectId 具有以下 IAM 权限才能进行授权:

  • storagetransfer.projects.getServiceAccount

请求正文

请求正文必须为空。

响应正文

如果成功,则响应正文包含一个 GoogleServiceAccount 实例。

授权范围

需要以下 OAuth 范围:

  • https://www.googleapis.com/auth/cloud-platform

如需了解详情,请参阅 Authentication Overview