Method: schemas.list

透過集合功能整理內容 你可以依據偏好儲存及分類內容。

擷取客戶的所有結構定義。

HTTP 要求

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

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

路徑參數

參數
customerId

string

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

要求主體

要求主體必須為空白。

回應主體

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

Directory API 中 chromeosdevices.list 結構定義作業的 JSON 回應範本。

JSON 表示法
{
  "kind": string,
  "etag": string,
  "schemas": [
    {
      object (Schema)
    }
  ]
}
欄位
kind

string

這是資源類型。

etag

string

資源的 ETag。

schemas[]

object (Schema)

UserSchema 物件清單。

授權範圍

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

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

詳情請參閱 OAuth 2.0 總覽