Method: admin.directory.v1.customers.chrome.printers.list
संग्रह की मदद से व्यवस्थित रहें
अपनी प्राथमिकताओं के आधार पर, कॉन्टेंट को सेव करें और कैटगरी में बांटें.
प्रिंटर के कॉन्फ़िगरेशन की सूची.
एचटीटीपी अनुरोध
GET https://admin.googleapis.com/admin/directory/v1/{parent=customers/*}/chrome/printers
यूआरएल में gRPC ट्रांसकोडिंग सिंटैक्स का इस्तेमाल किया गया है.
पाथ पैरामीटर
पैरामीटर |
parent |
string
ज़रूरी है. उस ग्राहक का नाम जिसके पास प्रिंटर के इस कलेक्शन का मालिकाना हक है. फ़ॉर्मैट: customers/{customer_id}
|
क्वेरी पैरामीटर
पैरामीटर |
pageSize |
integer
दिखाए जाने वाले ऑब्जेक्ट की ज़्यादा से ज़्यादा संख्या. ऐसा हो सकता है कि सेवा इस वैल्यू से कम नतीजे दिखाए.
|
pageToken |
string
पिछले कॉल से मिला पेज टोकन.
|
orgUnitId |
string
संगठन की वह इकाई जिसके लिए हमें प्रिंटर की सूची बनानी है. अगर अनुरोध में org_unit मौजूद नहीं है, तो ग्राहक के सभी प्रिंटर दिखाए जाते हैं या फ़िल्टर किए जाते हैं. अगर अनुरोध में org_unit मौजूद है, तो सिर्फ़ इस ओयू के लिए उपलब्ध प्रिंटर दिखाए जाएंगे. इन प्रिंटर का मालिकाना हक आपके पास हो सकता है या इन्हें इनहेरिट किया गया हो. Printer.org_unit_id देखकर यह पता लगाया जा सकता है कि इस ओयू के लिए प्रिंटर का मालिकाना हक है या उसे इनहेरिट किया गया है.
|
filter |
string
सर्च क्वेरी. खोज सिंटैक्स, इस एपीआई और Admin Console के प्रिंटर पेजों के बीच शेयर किया जाता है.
|
orderBy |
string
नतीजों को क्रम से लगाने का क्रम. यह displayName, description, makeAndModel या createTime में से कोई एक होना चाहिए. डिफ़ॉल्ट तौर पर, डेटा को बढ़ते क्रम में क्रम से लगाया जाता है. हालांकि, orderBy फ़ील्ड में "desc" जोड़कर, डेटा को घटते क्रम में क्रम से लगाया जा सकता है. उदाहरण के लिए, "description desc" से, ब्यौरे के हिसाब से प्रिंटर की लिस्ट, घटते क्रम में दिखेगी.
|
अनुरोध का मुख्य भाग
अनुरोध का मुख्य हिस्सा खाली होना चाहिए.
जवाब का मुख्य भाग
प्रिंटर की लिस्टिंग के लिए रिस्पॉन्स.
अगर एपीआई सही से जुड़ जाता है, ताे जवाब के मुख्य भाग में नीचे दिए गए स्ट्रक्चर शामिल होता है.
JSON के काेड में दिखाना |
{
"printers": [
{
object (Printer )
}
],
"nextPageToken": string
} |
फ़ील्ड |
printers[] |
object (Printer )
प्रिंटर की सूची. अगर अनुरोध में orgUnitId दिया गया था, तो सिर्फ़ इस OU के लिए दिखने वाले प्रिंटर दिखाए जाएंगे. अगर अनुरोध में orgUnitId नहीं दिया गया है, तो सभी प्रिंटर दिखाए जाएंगे.
|
nextPageToken |
string
एक टोकन, जिसे अगले पेज को वापस पाने के लिए pageToken के तौर पर भेजा जा सकता है. अगर इस फ़ील्ड को छोड़ा जाता है, तो इसके बाद कोई पेज नहीं दिखेगा.
|
अनुमति के दायरे
इसके लिए, OAuth के इनमें से किसी एक स्कोप की ज़रूरत होती है:
https://www.googleapis.com/auth/admin.chrome.printers
https://www.googleapis.com/auth/admin.chrome.printers.readonly
ज़्यादा जानकारी के लिए, अनुमति से जुड़ी गाइड देखें.
जब तक कुछ अलग से न बताया जाए, तब तक इस पेज की सामग्री को 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.list\n\nList printers configs.\n\n### HTTP request\n\n`GET https://admin.googleapis.com/admin/directory/v1/{parent=customers/*}/chrome/printers`\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| `orgUnitId` | `string` Organization Unit that we want to list the printers for. When org_unit is not present in the request then all printers of the customer are returned (or filtered). When org_unit is present in the request then only printers available to this OU will be returned (owned or inherited). You may see if printer is owned or inherited for this OU by looking at Printer.org_unit_id. |\n| `filter` | `string` Search query. Search syntax is shared between this api and Admin Console printers pages. |\n| `orderBy` | `string` The order to sort results by. Must be one of displayName, description, makeAndModel, or createTime. Default order is ascending, but descending order can be returned by appending \"desc\" to the orderBy field. For instance, \"description desc\" will return the printers sorted by description in descending order. |\n\n### Request body\n\nThe request body must be empty.\n\n### Response body\n\nResponse for listing printers.\n\nIf successful, the response body contains data with the following structure:\n\n| JSON representation |\n|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| ``` { \"printers\": [ { object (/workspace/admin/chrome-printer/reference/rest/v1/admin.directory.v1.customers.chrome.printers#Printer) } ], \"nextPageToken\": string } ``` |\n\n| Fields ||\n|-----------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `printers[]` | `object (`[Printer](/workspace/admin/chrome-printer/reference/rest/v1/admin.directory.v1.customers.chrome.printers#Printer)`)` List of printers. If `orgUnitId` was given in the request, then only printers visible for this OU will be returned. If `orgUnitId` was not given in the request, then all printers will be returned. |\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)."]]