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 还会作为 Users 资源的一部分返回。您必须提供 customerdomain 参数。

请求正文

请求正文必须为空。

响应正文

Directory API 中 schemas.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

如需了解详情,请参阅授权指南