Method: projects.getAuthorization

取得特定專案中部署作業的授權資訊。

HTTP 要求

GET https://gsuiteaddons.googleapis.com/v1/{name=projects/*/authorization}

這個網址使用 gRPC 轉碼語法。

路徑參數

參數
name

string

必要欄位。要取得 Google Workspace 外掛程式授權資訊的專案名稱。

範例:projects/my_project/authorization

授權需要指定資源 name 的下列 IAM 權限:

  • gsuiteaddons.authorizations.get

要求主體

要求主體必須為空白。

回應主體

叫用部署端點時使用的授權資訊。

如果成功,回應主體即會包含具有以下結構的資料:

JSON 表示法
{
  "name": string,
  "serviceAccountEmail": string,
  "oauthClientId": string
}
欄位
name

string

這項資源的標準全名。範例:projects/123/authorization

serviceAccountEmail

string

服務帳戶的電子郵件地址,用於驗證外掛程式回呼端點的要求。

oauthClientId

string

用來代表外掛程式為使用者取得 OAuth 存取權杖的 OAuth 用戶端 ID。

授權範圍

需要下列 OAuth 範圍:

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

詳情請參閱授權指南