Method: admin.directory.v1.customers.chrome.printers.listPrinterModels
Zadbaj o dobrą organizację dzięki kolekcji
Zapisuj i kategoryzuj treści zgodnie ze swoimi preferencjami.
Lista obsługiwanych modeli drukarek.
Żądanie HTTP
GET https://admin.googleapis.com/admin/directory/v1/{parent=customers/*}/chrome/printers:listPrinterModels
Adres URL używa składni transkodowania gRPC.
Parametry ścieżki
Parametry |
parent |
string
Wymagane. Nazwa klienta, który jest właścicielem tej kolekcji drukarek. Format: customers/{customer_id}
|
Parametry zapytania
Parametry |
pageSize |
integer
Maksymalna liczba zwracanych obiektów. Usługa może zwrócić mniej niż ta wartość.
|
pageToken |
string
Token strony otrzymany z poprzedniego wywołania.
|
filter |
string
Filtr do wyświetlania tylko modeli danego producenta w formacie „producent:Brother”. Składnia wyszukiwania jest wspólna dla tego interfejsu API i stron drukarek w Konsoli administracyjnej.
|
Treść żądania
Treść żądania musi być pusta.
Treść odpowiedzi
Odpowiedź dotycząca listy dozwolonych modeli drukarek.
W przypadku powodzenia treść żądania zawiera dane o następującej strukturze:
Zapis JSON |
{
"printerModels": [
{
object (PrinterModel )
}
],
"nextPageToken": string
} |
Pola |
printerModels[] |
object (PrinterModel )
Modele drukarek, które można obecnie skonfigurować w ChromeOS. Z czasem niektóre drukarki mogą zostać dodane lub usunięte.
|
nextPageToken |
string
token, który można wysłać jako pageToken , aby pobrać następną stronę. Jeśli pominiesz to pole, nie będzie kolejnych stron.
|
Zakresy autoryzacji
Wymaga jednego z tych zakresów OAuth:
https://www.googleapis.com/auth/admin.chrome.printers
https://www.googleapis.com/auth/admin.chrome.printers.readonly
Więcej informacji znajdziesz w przewodniku dotyczącym autoryzacji.
PrinterModel
Producent i model drukarki
Zapis JSON |
{
"manufacturer": string,
"displayName": string,
"makeAndModel": string
} |
Pola |
manufacturer |
string
Producent. „Brother”
|
displayName |
string
Wyświetlana nazwa. „Brother MFC-8840D”
|
makeAndModel |
string
Marka i model zgodnie z polem „makeAndModel” w obiekcie drukarki. „brother mfc-8840d”
|
O ile nie stwierdzono inaczej, treść tej strony jest objęta licencją Creative Commons – uznanie autorstwa 4.0, a fragmenty kodu są dostępne na licencji Apache 2.0. Szczegółowe informacje na ten temat zawierają zasady dotyczące witryny Google Developers. Java jest zastrzeżonym znakiem towarowym firmy Oracle i jej podmiotów stowarzyszonych.
Ostatnia aktualizacja: 2025-07-24 UTC.
[null,null,["Ostatnia aktualizacja: 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\" |"]]