Admin SDK: Chrome Printer Management API
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
借助 Chrome Printer Management API,管理员可以管理 CUPS 打印机和打印服务器。
服务:admin.googleapis.com
如要调用此服务,我们建议您使用 Google 提供的客户端库。如果您的应用需要使用您自己的库来调用此服务,则在发出 API 请求时应使用以下信息。
发现文档
发现文档是用于说明和使用 REST API 的机器可读规范。它用于构建客户端库、IDE 插件以及与 Google API 交互的其他工具。一项服务可能会提供多个发现文档。此服务提供了以下发现文档:
服务端点
服务端点是指定 API 服务的网络地址的基本网址。一项服务可能有多个服务端点。此服务具有以下服务端点,下面的所有 URI 都与此服务端点相关:
https://admin.googleapis.com
方法 |
batchCreatePrintServers |
POST /admin/directory/v1/{parent=customers/*}/chrome/printServers:batchCreatePrintServers
创建多个打印服务器。 |
batchDeletePrintServers |
POST /admin/directory/v1/{parent=customers/*}/chrome/printServers:batchDeletePrintServers
删除多台打印服务器。 |
create |
POST /admin/directory/v1/{parent=customers/*}/chrome/printServers
创建打印服务器。 |
delete |
DELETE /admin/directory/v1/{name=customers/*/chrome/printServers/*}
删除打印服务器。 |
get |
GET /admin/directory/v1/{name=customers/*/chrome/printServers/*} 返回打印服务器的配置。 |
list |
GET /admin/directory/v1/{parent=customers/*}/chrome/printServers
列出打印服务器配置。 |
patch |
PATCH /admin/directory/v1/{printServer.name=customers/*/chrome/printServers/*} 更新打印服务器的配置。 |
方法 |
batchCreatePrinters |
POST /admin/directory/v1/{parent=customers/*}/chrome/printers:batchCreatePrinters
在指定的组织部门下创建打印机。 |
batchDeletePrinters |
POST /admin/directory/v1/{parent=customers/*}/chrome/printers:batchDeletePrinters
批量删除打印机。 |
create |
POST /admin/directory/v1/{parent=customers/*}/chrome/printers 在指定的组织部门下创建打印机。 |
delete |
DELETE /admin/directory/v1/{name=customers/*/chrome/printers/*}
删除 Printer 。 |
get |
GET /admin/directory/v1/{name=customers/*/chrome/printers/*}
返回 Printer 资源(打印机的配置)。 |
list |
GET /admin/directory/v1/{parent=customers/*}/chrome/printers
列出打印机配置。 |
listPrinterModels |
GET /admin/directory/v1/{parent=customers/*}/chrome/printers:listPrinterModels
列出受支持的打印机型号。 |
patch |
PATCH /admin/directory/v1/{printer.name=customers/*/chrome/printers/*}
更新 Printer 资源。 |
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-07-25。
[null,null,["最后更新时间 (UTC):2025-07-25。"],[],[],null,["# Admin SDK: Chrome Printer Management API\n\nThe Chrome Printer Management API lets admins manage [CUPS](https://www.cups.org/) printers and print servers.\n\nService: admin.googleapis.com\n-----------------------------\n\nTo call this service, we recommend that you use the Google-provided [client libraries](https://cloud.google.com/apis/docs/client-libraries-explained). If your application needs to use your own libraries to call this service, use the following information when you make the API requests.\n\n### Discovery document\n\nA [Discovery Document](https://developers.google.com/discovery/v1/reference/apis) is a machine-readable specification for describing and consuming REST APIs. It is used to build client libraries, IDE plugins, and other tools that interact with Google APIs. One service may provide multiple discovery documents. This service provides the following discovery document:\n\n- \u003chttps://admin.googleapis.com/$discovery/rest?version=directory_v1\u003e\n\n### Service endpoint\n\nA [service endpoint](https://cloud.google.com/apis/design/glossary#api_service_endpoint) is a base URL that specifies the network address of an API service. One service might have multiple service endpoints. This service has the following service endpoint and all URIs below are relative to this service endpoint:\n\n- `https://admin.googleapis.com`\n\nREST Resource: [admin.directory.v1.customers.chrome.printServers](/workspace/admin/chrome-printer/reference/rest/v1/admin.directory.v1.customers.chrome.printServers)\n---------------------------------------------------------------------------------------------------------------------------------------------------------------------\n\n| Methods ||\n|-------------------------------------------------------------------------------------------------------------------------------------------------------|-----------------------------------------------------------------------------------------------------------------------------|\n| [batchCreatePrintServers](/workspace/admin/chrome-printer/reference/rest/v1/admin.directory.v1.customers.chrome.printServers/batchCreatePrintServers) | `POST /admin/directory/v1/{parent=customers/*}/chrome/printServers:batchCreatePrintServers` Creates multiple print servers. |\n| [batchDeletePrintServers](/workspace/admin/chrome-printer/reference/rest/v1/admin.directory.v1.customers.chrome.printServers/batchDeletePrintServers) | `POST /admin/directory/v1/{parent=customers/*}/chrome/printServers:batchDeletePrintServers` Deletes multiple print servers. |\n| [create](/workspace/admin/chrome-printer/reference/rest/v1/admin.directory.v1.customers.chrome.printServers/create) | `POST /admin/directory/v1/{parent=customers/*}/chrome/printServers` Creates a print server. |\n| [delete](/workspace/admin/chrome-printer/reference/rest/v1/admin.directory.v1.customers.chrome.printServers/delete) | `DELETE /admin/directory/v1/{name=customers/*/chrome/printServers/*}` Deletes a print server. |\n| [get](/workspace/admin/chrome-printer/reference/rest/v1/admin.directory.v1.customers.chrome.printServers/get) | `GET /admin/directory/v1/{name=customers/*/chrome/printServers/*}` Returns a print server's configuration. |\n| [list](/workspace/admin/chrome-printer/reference/rest/v1/admin.directory.v1.customers.chrome.printServers/list) | `GET /admin/directory/v1/{parent=customers/*}/chrome/printServers` Lists print server configurations. |\n| [patch](/workspace/admin/chrome-printer/reference/rest/v1/admin.directory.v1.customers.chrome.printServers/patch) | `PATCH /admin/directory/v1/{printServer.name=customers/*/chrome/printServers/*}` Updates a print server's configuration. |\n\nREST Resource: [admin.directory.v1.customers.chrome.printers](/workspace/admin/chrome-printer/reference/rest/v1/admin.directory.v1.customers.chrome.printers)\n-------------------------------------------------------------------------------------------------------------------------------------------------------------\n\n| Methods ||\n|-------------------------------------------------------------------------------------------------------------------------------------------|-------------------------------------------------------------------------------------------------------------------------------------|\n| [batchCreatePrinters](/workspace/admin/chrome-printer/reference/rest/v1/admin.directory.v1.customers.chrome.printers/batchCreatePrinters) | `POST /admin/directory/v1/{parent=customers/*}/chrome/printers:batchCreatePrinters` Creates printers under given Organization Unit. |\n| [batchDeletePrinters](/workspace/admin/chrome-printer/reference/rest/v1/admin.directory.v1.customers.chrome.printers/batchDeletePrinters) | `POST /admin/directory/v1/{parent=customers/*}/chrome/printers:batchDeletePrinters` Deletes printers in batch. |\n| [create](/workspace/admin/chrome-printer/reference/rest/v1/admin.directory.v1.customers.chrome.printers/create) | `POST /admin/directory/v1/{parent=customers/*}/chrome/printers` Creates a printer under given Organization Unit. |\n| [delete](/workspace/admin/chrome-printer/reference/rest/v1/admin.directory.v1.customers.chrome.printers/delete) | `DELETE /admin/directory/v1/{name=customers/*/chrome/printers/*}` Deletes a `Printer`. |\n| [get](/workspace/admin/chrome-printer/reference/rest/v1/admin.directory.v1.customers.chrome.printers/get) | `GET /admin/directory/v1/{name=customers/*/chrome/printers/*}` Returns a `Printer` resource (printer's config). |\n| [list](/workspace/admin/chrome-printer/reference/rest/v1/admin.directory.v1.customers.chrome.printers/list) | `GET /admin/directory/v1/{parent=customers/*}/chrome/printers` List printers configs. |\n| [listPrinterModels](/workspace/admin/chrome-printer/reference/rest/v1/admin.directory.v1.customers.chrome.printers/listPrinterModels) | `GET /admin/directory/v1/{parent=customers/*}/chrome/printers:listPrinterModels` Lists the supported printer models. |\n| [patch](/workspace/admin/chrome-printer/reference/rest/v1/admin.directory.v1.customers.chrome.printers/patch) | `PATCH /admin/directory/v1/{printer.name=customers/*/chrome/printers/*}` Updates a `Printer` resource. |"]]