Method: schemas.get

擷取結構定義。

HTTP 要求

GET https://admin.googleapis.com/admin/directory/v1/customer/{customerId}/schemas/{schemaKey}

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

路徑參數

參數
customerId

string

客戶 Google Workspace 帳戶的專屬 ID。如果是多網域帳戶,請使用這個欄位,而非 domain,為客戶擷取所有群組。您也可以使用 my_customer 別名來代表帳戶的 customerId。系統也會在 Users 資源中傳回 customerId。您必須提供 customerdomain 參數。

schemaKey

string

結構定義的名稱或固定 ID。

要求主體

要求主體必須為空白。

回應主體

如果成功,回應主體會包含 Schema 的執行例項。

授權範圍

需要下列其中一種 OAuth 範圍:

  • https://www.googleapis.com/auth/admin.directory.userschema
  • https://www.googleapis.com/auth/admin.directory.userschema.readonly

詳情請參閱授權指南