Method: admin.directory.v1.customers.chrome.printers.listPrinterModels
संग्रह की मदद से व्यवस्थित रहें
अपनी प्राथमिकताओं के आधार पर, कॉन्टेंट को सेव करें और कैटगरी में बांटें.
इस सुविधा के साथ काम करने वाले प्रिंटर मॉडल की सूची.
एचटीटीपी अनुरोध
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". खोज सिंटैक्स, इस एपीआई और Admin Console के प्रिंटर पेजों के बीच शेयर किया जाता है.
|
अनुरोध का मुख्य भाग
अनुरोध का मुख्य हिस्सा खाली होना चाहिए.
जवाब का मुख्य भाग
अनुमति वाले प्रिंटर मॉडल की सूची के लिए रिस्पॉन्स.
अगर एपीआई सही से जुड़ जाता है, ताे जवाब के मुख्य भाग में नीचे दिए गए स्ट्रक्चर शामिल होता है.
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
Manufacturer. eq. "भाई"
|
displayName |
string
डिसप्ले नेम. eq. "Brother MFC-8840D"
|
makeAndModel |
string
प्रिंटर ऑब्जेक्ट के "makeAndModel" फ़ील्ड में दिखाया गया मैन्युफ़ैक्चरर और मॉडल. जैसे, "brother mfc-8840d"
|
जब तक कुछ अलग से न बताया जाए, तब तक इस पेज की सामग्री को Creative Commons Attribution 4.0 License के तहत और कोड के नमूनों को Apache 2.0 License के तहत लाइसेंस मिला है. ज़्यादा जानकारी के लिए, Google Developers साइट नीतियां देखें. Oracle और/या इससे जुड़ी हुई कंपनियों का, Java एक रजिस्टर किया हुआ ट्रेडमार्क है.
आखिरी बार 2025-07-24 (UTC) को अपडेट किया गया.
[null,null,["आखिरी बार 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\" |"]]