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 别名来表示您帐号的 customerIdcustomerId 还会作为 Users 资源的一部分返回。您必须提供 customerdomain 参数。

schemaKey

string

架构的名称或不可变 ID。

请求正文

请求正文必须为空。

响应正文

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

授权范围

需要以下 OAuth 范围之一:

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

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