Method: admin.directory.v1.customers.chrome.printers.batchCreatePrinters
संग्रह की मदद से व्यवस्थित रहें
अपनी प्राथमिकताओं के आधार पर, कॉन्टेंट को सेव करें और कैटगरी में बांटें.
संगठन की दी गई इकाई में प्रिंटर बनाता है.
एचटीटीपी अनुरोध
POST https://admin.googleapis.com/admin/directory/v1/{parent=customers/*}/chrome/printers:batchCreatePrinters
यूआरएल में gRPC ट्रांसकोडिंग सिंटैक्स का इस्तेमाल किया गया है.
पाथ पैरामीटर
पैरामीटर |
parent |
string
ज़रूरी है. ग्राहक का नाम. फ़ॉर्मैट: customers/{customer_id}
|
अनुरोध का मुख्य भाग
अनुरोध के मुख्य भाग में नीचे दिए गए स्ट्रक्चर वाला डेटा होता है:
फ़ील्ड |
requests[] |
object (CreatePrinterRequest )
जोड़े जाने वाले प्रिंटर की सूची. एक बार में ज़्यादा से ज़्यादा 50.
|
जवाब का मुख्य भाग
एक साथ कई नए प्रिंटर जोड़ने के अनुरोध का जवाब.
अगर एपीआई सही से जुड़ जाता है, ताे जवाब के मुख्य भाग में नीचे दिए गए स्ट्रक्चर शामिल होता है.
JSON के काेड में दिखाना |
{
"printers": [
{
object (Printer )
}
],
"failures": [
{
object (FailureInfo )
}
]
} |
फ़ील्ड |
printers[] |
object (Printer )
उन प्रिंटर की सूची जिनका आईडी जनरेट हो गया है.
|
failures[] |
object (FailureInfo )
ऐसे आइटम की सूची जिन्हें बनाने में समस्या हुई. प्रिंटर आईडी अपने-आप नहीं भरे जाते, क्योंकि प्रिंटर नहीं बनाए गए हैं.
|
अनुमति के दायरे
नीचे दिए गए OAuth के लिंक की ज़रूरत हाेती है:
https://www.googleapis.com/auth/admin.chrome.printers
ज़्यादा जानकारी के लिए, अनुमति से जुड़ी गाइड देखें.
CreatePrinterRequest
नया प्रिंटर जोड़ने का अनुरोध.
JSON के काेड में दिखाना |
{
"parent": string,
"printer": {
object (Printer )
}
} |
फ़ील्ड |
parent |
string
ज़रूरी है. ग्राहक का नाम. फ़ॉर्मैट: customers/{customer_id}
|
printer |
object (Printer )
ज़रूरी है. प्रिंटर बनाने के लिए. अगर आपको प्रिंटर को किसी खास ओयू के तहत रखना है, तो printer.org_unit_id फ़ील्ड में जानकारी भरें. ऐसा न करने पर, प्रिंटर को रूट ओयू में रखा जाएगा.
|
जब तक कुछ अलग से न बताया जाए, तब तक इस पेज की सामग्री को 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.batchCreatePrinters\n\nCreates printers under given Organization Unit.\n\n### HTTP request\n\n`POST https://admin.googleapis.com/admin/directory/v1/{parent=customers/*}/chrome/printers:batchCreatePrinters`\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. Format: customers/{customer_id} |\n\n### Request body\n\nThe request body contains data with the following structure:\n\n| JSON representation |\n|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| ``` { \"requests\": [ { object (/workspace/admin/chrome-printer/reference/rest/v1/admin.directory.v1.customers.chrome.printers/batchCreatePrinters#CreatePrinterRequest) } ] } ``` |\n\n| Fields ||\n|--------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `requests[]` | `object (`[CreatePrinterRequest](/workspace/admin/chrome-printer/reference/rest/v1/admin.directory.v1.customers.chrome.printers/batchCreatePrinters#CreatePrinterRequest)`)` A list of Printers to be created. Max 50 at a time. |\n\n### Response body\n\nResponse for adding new printers in batch.\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) } ], \"failures\": [ { object (/workspace/admin/chrome-printer/reference/rest/v1/FailureInfo) } ] } ``` |\n\n| Fields ||\n|--------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `printers[]` | `object (`[Printer](/workspace/admin/chrome-printer/reference/rest/v1/admin.directory.v1.customers.chrome.printers#Printer)`)` A list of successfully created printers with their IDs populated. |\n| `failures[]` | `object (`[FailureInfo](/workspace/admin/chrome-printer/reference/rest/v1/FailureInfo)`)` A list of create failures. Printer IDs are not populated, as printer were not created. |\n\n### Authorization scopes\n\nRequires the following OAuth scope:\n\n- `https://www.googleapis.com/auth/admin.chrome.printers`\n\nFor more information, see the [Authorization guide](/workspace/guides/configure-oauth-consent).\n\nCreatePrinterRequest\n--------------------\n\nRequest for adding a new printer.\n\n| JSON representation |\n|--------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| ``` { \"parent\": string, \"printer\": { object (/workspace/admin/chrome-printer/reference/rest/v1/admin.directory.v1.customers.chrome.printers#Printer) } } ``` |\n\n| Fields ||\n|-----------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `parent` | `string` Required. The name of the customer. Format: customers/{customer_id} |\n| `printer` | `object (`[Printer](/workspace/admin/chrome-printer/reference/rest/v1/admin.directory.v1.customers.chrome.printers#Printer)`)` Required. A printer to create. If you want to place the printer under particular OU then populate printer.org_unit_id filed. Otherwise the printer will be placed under root OU. |"]]