Method: admin.directory.v1.customers.chrome.printers.listPrinterModels
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
HTTP 请求
GET https://admin.googleapis.com/admin/directory/v1/{parent=customers/*}/chrome/printers:listPrinterModels
网址采用 gRPC 转码语法。
路径参数
参数 |
parent |
string
必需。拥有此打印机集合的客户的名称。格式:customers/{customer_id}
|
查询参数
参数 |
pageSize |
integer
要返回的最大对象数。服务返回的值可能小于此值。
|
pageToken |
string
从上一个调用收到的页面令牌。
|
filter |
string
过滤器,用于仅列出给定制造商的型号,格式为“manufacturer:Brother”。此 API 和管理控制台打印机页面之间共用搜索语法。
|
响应正文
用于列出允许的打印机型号的响应。
如果成功,响应正文将包含结构如下的数据:
JSON 表示法 |
{
"printerModels": [
{
object (PrinterModel )
}
],
"nextPageToken": string
} |
字段 |
printerModels[] |
object (PrinterModel )
目前允许为 ChromeOS 配置的打印机型号。随着时间的推移,系统可能会添加或移除某些打印机。
|
nextPageToken |
string
可作为 pageToken 发送并用于检索下一页的令牌。如果省略此字段,则不存在后续页面。
|
授权范围
需要以下 OAuth 范围之一:
https://www.googleapis.com/auth/admin.chrome.printers
https://www.googleapis.com/auth/admin.chrome.printers.readonly
如需了解详情,请参阅授权指南。
PrinterModel
JSON 表示法 |
{
"manufacturer": string,
"displayName": string,
"makeAndModel": string
} |
字段 |
manufacturer |
string
制造商。例如“Brother”
|
displayName |
string
显示名称。例如“Brother MFC-8840D”
|
makeAndModel |
string
品牌和型号,如 Printer 对象中的“makeAndModel”字段所示。例如,“brother mfc-8840d”
|
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-07-24。
[null,null,["最后更新时间 (UTC):2025-07-24。"],[],[],null,["# Method: admin.directory.v1.customers.chrome.printers.listPrinterModels\n\nLists the supported printer models.\n\n### HTTP request\n\n`GET https://admin.googleapis.com/admin/directory/v1/{parent=customers/*}/chrome/printers:listPrinterModels`\n\nThe URL uses [gRPC Transcoding](https://google.aip.dev/127) syntax.\n\n### Path parameters\n\n| Parameters ||\n|----------|-------------------------------------------------------------------------------------------------------------------|\n| `parent` | `string` Required. The name of the customer who owns this collection of printers. Format: customers/{customer_id} |\n\n### Query parameters\n\n| Parameters ||\n|-------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `pageSize` | `integer` The maximum number of objects to return. The service may return fewer than this value. |\n| `pageToken` | `string` A page token, received from a previous call. |\n| `filter` | `string` Filer to list only models by a given manufacturer in format: \"manufacturer:Brother\". Search syntax is shared between this api and Admin Console printers pages. |\n\n### Request body\n\nThe request body must be empty.\n\n### Response body\n\nResponse for listing allowed printer models.\n\nIf successful, the response body contains data with the following structure:\n\n| JSON representation |\n|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| ``` { \"printerModels\": [ { object (/workspace/admin/chrome-printer/reference/rest/v1/admin.directory.v1.customers.chrome.printers/listPrinterModels#PrinterModel) } ], \"nextPageToken\": string } ``` |\n\n| Fields ||\n|-------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `printerModels[]` | `object (`[PrinterModel](/workspace/admin/chrome-printer/reference/rest/v1/admin.directory.v1.customers.chrome.printers/listPrinterModels#PrinterModel)`)` Printer models that are currently allowed to be configured for ChromeOs. Some printers may be added or removed over time. |\n| `nextPageToken` | `string` A token, which can be sent as `pageToken` to retrieve the next page. If this field is omitted, there are no subsequent pages. |\n\n### Authorization scopes\n\nRequires one of the following OAuth scopes:\n\n- `https://www.googleapis.com/auth/admin.chrome.printers`\n- `\n https://www.googleapis.com/auth/admin.chrome.printers.readonly`\n\nFor more information, see the [Authorization guide](/workspace/guides/configure-oauth-consent).\n\nPrinterModel\n------------\n\nPrinter manufacturer and model\n\n| JSON representation |\n|-----------------------------------------------------------------------------------|\n| ``` { \"manufacturer\": string, \"displayName\": string, \"makeAndModel\": string } ``` |\n\n| Fields ||\n|----------------|-----------------------------------------------------------------------------------------------------------|\n| `manufacturer` | `string` Manufacturer. eq. \"Brother\" |\n| `displayName` | `string` Display name. eq. \"Brother MFC-8840D\" |\n| `makeAndModel` | `string` Make and model as represented in \"makeAndModel\" field in Printer object. eq. \"brother mfc-8840d\" |"]]