Method: admin.directory.v1.customers.chrome.printers.batchCreatePrinters
Koleksiyonlar ile düzeninizi koruyun
İçeriği tercihlerinize göre kaydedin ve kategorilere ayırın.
Belirli bir kuruluş biriminin altında yazıcı oluşturur.
HTTP isteği
POST https://admin.googleapis.com/admin/directory/v1/{parent=customers/*}/chrome/printers:batchCreatePrinters
URL, gRPC Kod Dönüştürme söz dizimini kullanır.
Yol parametreleri
Parametreler |
parent |
string
Zorunlu. Müşterinin adı. Biçim: customers/{customer_id}
|
İstek içeriği
İstek metni aşağıdaki yapıyla birlikte verileri içerir:
Alanlar |
requests[] |
object (CreatePrinterRequest )
Oluşturulacak yazıcıların listesi. Aynı anda en fazla 50 tane.
|
Yanıt gövdesi
Yeni yazıcıları toplu olarak eklemeyle ilgili yanıt.
Başarılı olursa yanıt metni aşağıdaki yapıyla birlikte verileri içerir:
JSON gösterimi |
{
"printers": [
{
object (Printer )
}
],
"failures": [
{
object (FailureInfo )
}
]
} |
Alanlar |
printers[] |
object (Printer )
Kimlikleri doldurulmuş, başarıyla oluşturulmuş yazıcıların listesi.
|
failures[] |
object (FailureInfo )
Oluşturma hatalarının listesi. Yazıcı oluşturulmadığı için yazıcı kimlikleri doldurulmaz.
|
Yetkilendirme kapsamları
Aşağıdaki OAuth kapsamını gerektirir:
https://www.googleapis.com/auth/admin.chrome.printers
Daha fazla bilgi için Yetkilendirme kılavuzuna bakın.
CreatePrinterRequest
Yeni yazıcı ekleme isteği.
JSON gösterimi |
{
"parent": string,
"printer": {
object (Printer )
}
} |
Alanlar |
parent |
string
Zorunlu. Müşterinin adı. Biçim: customers/{customer_id}
|
printer |
object (Printer )
Zorunlu. Oluşturulacak yazıcı. Yazıcıyı belirli bir kuruluş biriminin altına yerleştirmek istiyorsanız printer.org_unit_id alanını doldurun. Aksi takdirde yazıcı kök kuruluş biriminin altına yerleştirilir.
|
Aksi belirtilmediği sürece bu sayfanın içeriği Creative Commons Atıf 4.0 Lisansı altında ve kod örnekleri Apache 2.0 Lisansı altında lisanslanmıştır. Ayrıntılı bilgi için Google Developers Site Politikaları'na göz atın. Java, Oracle ve/veya satış ortaklarının tescilli ticari markasıdır.
Son güncelleme tarihi: 2025-07-24 UTC.
[null,null,["Son güncelleme tarihi: 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. |"]]