Method: admin.directory.v1.customers.chrome.printers.batchCreatePrinters
সেভ করা পৃষ্ঠা গুছিয়ে রাখতে 'সংগ্রহ' ব্যবহার করুন
আপনার পছন্দ অনুযায়ী কন্টেন্ট সেভ করুন ও সঠিক বিভাগে রাখুন।
প্রদত্ত সংস্থা ইউনিটের অধীনে প্রিন্টার তৈরি করে।
HTTP অনুরোধ
POST https://admin.googleapis.com/admin/directory/v1/{parent=customers/*}/chrome/printers:batchCreatePrinters
URL gRPC ট্রান্সকোডিং সিনট্যাক্স ব্যবহার করে।
পাথ প্যারামিটার
পরামিতি |
---|
parent | string প্রয়োজন। গ্রাহকের নাম। বিন্যাস: গ্রাহক/{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
আরও তথ্যের জন্য, অনুমোদন নির্দেশিকা দেখুন।
প্রিন্টার অনুরোধ তৈরি করুন
একটি নতুন প্রিন্টার যোগ করার জন্য অনুরোধ.
JSON প্রতিনিধিত্ব |
---|
{
"parent": string,
"printer": {
object (Printer )
}
} |
ক্ষেত্র |
---|
parent | string প্রয়োজন। গ্রাহকের নাম। বিন্যাস: গ্রাহক/{customer_id} |
printer | object ( Printer ) প্রয়োজন। তৈরি করার জন্য একটি প্রিন্টার। আপনি যদি নির্দিষ্ট OU এর অধীনে প্রিন্টার রাখতে চান তাহলে printer.org_unit_id ফাইলটি পূরণ করুন। অন্যথায় প্রিন্টারটি রুট OU এর অধীনে স্থাপন করা হবে। |
অন্য কিছু উল্লেখ না করা থাকলে, এই পৃষ্ঠার কন্টেন্ট Creative Commons Attribution 4.0 License-এর অধীনে এবং কোডের নমুনাগুলি Apache 2.0 License-এর অধীনে লাইসেন্স প্রাপ্ত। আরও জানতে, Google Developers সাইট নীতি দেখুন। Java হল Oracle এবং/অথবা তার অ্যাফিলিয়েট সংস্থার রেজিস্টার্ড ট্রেডমার্ক।
2025-07-28 UTC-তে শেষবার আপডেট করা হয়েছে।
[null,null,["2025-07-28 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. |"]]