Method: admin.directory.v1.customers.chrome.printServers.batchCreatePrintServers
با مجموعهها، منظم بمانید
ذخیره و طبقهبندی محتوا براساس اولویتهای شما.
چندین سرور چاپ ایجاد می کند.
درخواست HTTP
POST https://admin.googleapis.com/admin/directory/v1/{parent=customers/*}/chrome/printServers:batchCreatePrintServers
URL از دستور GRPC Transcoding استفاده می کند.
پارامترهای مسیر
پارامترها |
---|
parent | string مورد نیاز. شناسه منحصر به فرد حساب Google Workspace مشتری. قالب: customers/{id} |
درخواست بدن
بدنه درخواست حاوی داده هایی با ساختار زیر است:
فیلدها |
---|
requests[] | object ( CreatePrintServerRequest ) مورد نیاز. فهرستی از منابع PrintServer که باید ایجاد شوند (حداکثر 50 در هر دسته). |
بدن پاسخگو
در صورت موفقیت آمیز بودن، بدنه پاسخ حاوی داده هایی با ساختار زیر است:
فیلدها |
---|
printServers[] | object ( PrintServer ) فهرستی از سرورهای چاپ با موفقیت ایجاد شده با شناسه آنها پر شده است. |
failures[] | object ( PrintServerFailureInfo ) لیستی از ایجاد شکست. شناسههای PrintServer پر نمیشوند، زیرا سرورهای چاپ ایجاد نشدهاند. |
محدوده مجوز
به محدوده OAuth زیر نیاز دارد:
-
https://www.googleapis.com/auth/admin.chrome.printers
برای اطلاعات بیشتر، به راهنمای مجوز مراجعه کنید.
CreatePrintServerRequest
درخواست برای افزودن سرور چاپ جدید.
نمایندگی JSON |
---|
{
"parent": string,
"printServer": {
object (PrintServer )
}
} |
فیلدها |
---|
parent | string مورد نیاز. شناسه منحصر به فرد حساب Google Workspace مشتری. قالب: customers/{id} |
printServer | object ( PrintServer ) مورد نیاز. یک سرور چاپ برای ایجاد. اگر می خواهید سرور چاپ را تحت یک واحد سازمانی خاص (OU) قرار دهید، سپس orgUnitId را پر کنید. در غیر این صورت سرور چاپ تحت OU ریشه ایجاد می شود. orgUnitId را می توان با استفاده از Directory API بازیابی کرد. |
جز در مواردی که غیر از این ذکر شده باشد،محتوای این صفحه تحت مجوز Creative Commons Attribution 4.0 License است. نمونه کدها نیز دارای مجوز Apache 2.0 License است. برای اطلاع از جزئیات، به خطمشیهای سایت Google Developers مراجعه کنید. جاوا علامت تجاری ثبتشده Oracle و/یا شرکتهای وابسته به آن است.
تاریخ آخرین بهروزرسانی 2025-07-25 بهوقت ساعت هماهنگ جهانی.
[null,null,["تاریخ آخرین بهروزرسانی 2025-07-25 بهوقت ساعت هماهنگ جهانی."],[],[],null,["# Method: admin.directory.v1.customers.chrome.printServers.batchCreatePrintServers\n\nCreates multiple print servers.\n\n### HTTP request\n\n`POST https://admin.googleapis.com/admin/directory/v1/{parent=customers/*}/chrome/printServers:batchCreatePrintServers`\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 [unique ID](https://developers.google.com/workspace/admin/directory/reference/rest/v1/customers) of the customer's Google Workspace account. Format: `customers/{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.printServers/batchCreatePrintServers#CreatePrintServerRequest) } ] } ``` |\n\n| Fields ||\n|--------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `requests[]` | `object (`[CreatePrintServerRequest](/workspace/admin/chrome-printer/reference/rest/v1/admin.directory.v1.customers.chrome.printServers/batchCreatePrintServers#CreatePrintServerRequest)`)` Required. A list of `PrintServer` resources to be created (max `50` per batch). |\n\n### Response body\n\nIf successful, the response body contains data with the following structure:\n\n| JSON representation |\n|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| ``` { \"printServers\": [ { object (/workspace/admin/chrome-printer/reference/rest/v1/admin.directory.v1.customers.chrome.printServers#PrintServer) } ], \"failures\": [ { object (/workspace/admin/chrome-printer/reference/rest/v1/PrintServerFailureInfo) } ] } ``` |\n\n| Fields ||\n|------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `printServers[]` | `object (`[PrintServer](/workspace/admin/chrome-printer/reference/rest/v1/admin.directory.v1.customers.chrome.printServers#PrintServer)`)` A list of successfully created print servers with their IDs populated. |\n| `failures[]` | `object (`[PrintServerFailureInfo](/workspace/admin/chrome-printer/reference/rest/v1/PrintServerFailureInfo)`)` A list of create failures. `PrintServer` IDs are not populated, as print servers 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\nCreatePrintServerRequest\n------------------------\n\nRequest for adding a new print server.\n\n| JSON representation |\n|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| ``` { \"parent\": string, \"printServer\": { object (/workspace/admin/chrome-printer/reference/rest/v1/admin.directory.v1.customers.chrome.printServers#PrintServer) } } ``` |\n\n| Fields ||\n|---------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `parent` | `string` Required. The [unique ID](https://developers.google.com/workspace/admin/directory/reference/rest/v1/customers) of the customer's Google Workspace account. Format: `customers/{id}` |\n| `printServer` | `object (`[PrintServer](/workspace/admin/chrome-printer/reference/rest/v1/admin.directory.v1.customers.chrome.printServers#PrintServer)`)` Required. A print server to create. If you want to place the print server under a specific organizational unit (OU), then populate the `orgUnitId`. Otherwise the print server is created under the root OU. The `orgUnitId` can be retrieved using the [Directory API](https://developers.google.com/workspace/admin/directory/v1/guides/manage-org-units). |"]]