Method: admin.directory.v1.customers.chrome.printers.listPrinterModels
Sử dụng bộ sưu tập để sắp xếp ngăn nắp các trang
Lưu và phân loại nội dung dựa trên lựa chọn ưu tiên của bạn.
Liệt kê các kiểu máy in được hỗ trợ.
Yêu cầu HTTP
GET https://admin.googleapis.com/admin/directory/v1/{parent=customers/*}/chrome/printers:listPrinterModels
URL sử dụng cú pháp Chuyển mã gRPC.
Tham số đường dẫn
Thông số |
parent |
string
Bắt buộc. Tên của khách hàng sở hữu bộ sưu tập máy in này. Định dạng: customers/{customer_id}
|
Tham số truy vấn
Thông số |
pageSize |
integer
Số lượng đối tượng tối đa cần trả về. Dịch vụ có thể trả về ít hơn giá trị này.
|
pageToken |
string
Mã thông báo trang, nhận được từ một lệnh gọi trước đó.
|
filter |
string
Bộ lọc chỉ liệt kê các mẫu của một nhà sản xuất nhất định ở định dạng: "manufacturer:Brother". Cú pháp tìm kiếm được chia sẻ giữa api này và các trang máy in trong Bảng điều khiển dành cho quản trị viên.
|
Nội dung yêu cầu
Nội dung yêu cầu phải trống.
Nội dung phản hồi
Phản hồi cho việc liệt kê các mẫu máy in được phép.
Nếu thành công, phần nội dung phản hồi sẽ chứa dữ liệu có cấu trúc sau:
Biểu diễn dưới dạng JSON |
{
"printerModels": [
{
object (PrinterModel )
}
],
"nextPageToken": string
} |
Trường |
printerModels[] |
object (PrinterModel )
Các mẫu máy in hiện được phép định cấu hình cho ChromeOS. Một số máy in có thể được thêm hoặc xoá theo thời gian.
|
nextPageToken |
string
Mã thông báo có thể được gửi dưới dạng pageToken để truy xuất trang tiếp theo. Nếu bạn bỏ qua trường này, thì sẽ không có trang tiếp theo.
|
Phạm vi uỷ quyền
Yêu cầu một trong các phạm vi OAuth sau:
https://www.googleapis.com/auth/admin.chrome.printers
https://www.googleapis.com/auth/admin.chrome.printers.readonly
Để biết thêm thông tin, hãy xem Hướng dẫn uỷ quyền.
PrinterModel
Nhà sản xuất và kiểu máy in
Biểu diễn dưới dạng JSON |
{
"manufacturer": string,
"displayName": string,
"makeAndModel": string
} |
Trường |
manufacturer |
string
Nhà sản xuất. eq. "Anh"
|
displayName |
string
Tên hiển thị. eq. "Brother MFC-8840D"
|
makeAndModel |
string
Hãng và mẫu được thể hiện trong trường "makeAndModel" trong đối tượng Máy in. eq. "brother mfc-8840d"
|
Trừ phi có lưu ý khác, nội dung của trang này được cấp phép theo Giấy phép ghi nhận tác giả 4.0 của Creative Commons và các mẫu mã lập trình được cấp phép theo Giấy phép Apache 2.0. Để biết thông tin chi tiết, vui lòng tham khảo Chính sách trang web của Google Developers. Java là nhãn hiệu đã đăng ký của Oracle và/hoặc các đơn vị liên kết với Oracle.
Cập nhật lần gần đây nhất: 2025-07-24 UTC.
[null,null,["Cập nhật lần gần đây nhất: 2025-07-24 UTC."],[],[],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\" |"]]