Method: admin.directory.v1.customers.chrome.printServers.batchCreatePrintServers
จัดทุกอย่างให้เป็นระเบียบอยู่เสมอด้วยคอลเล็กชัน
บันทึกและจัดหมวดหมู่เนื้อหาตามค่ากำหนดของคุณ
สร้างเซิร์ฟเวอร์การพิมพ์หลายรายการ
คำขอ HTTP
POST https://admin.googleapis.com/admin/directory/v1/{parent=customers/*}/chrome/printServers:batchCreatePrintServers
URL ใช้ไวยากรณ์การแปลง gRPC
พารามิเตอร์เส้นทาง
พารามิเตอร์ |
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 ได้
|
เนื้อหาของหน้าเว็บนี้ได้รับอนุญาตภายใต้ใบอนุญาตที่ต้องระบุที่มาของครีเอทีฟคอมมอนส์ 4.0 และตัวอย่างโค้ดได้รับอนุญาตภายใต้ใบอนุญาต Apache 2.0 เว้นแต่จะระบุไว้เป็นอย่างอื่น โปรดดูรายละเอียดที่นโยบายเว็บไซต์ Google Developers Java เป็นเครื่องหมายการค้าจดทะเบียนของ Oracle และ/หรือบริษัทในเครือ
อัปเดตล่าสุด 2025-07-25 UTC
[null,null,["อัปเดตล่าสุด 2025-07-25 UTC"],[],[],null,["Creates multiple print servers.\n\nHTTP 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\nPath 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\nRequest 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\nResponse body If 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\nAuthorization 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 Request 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). |"]]