Method: admin.directory.v1.customers.chrome.printServers.batchCreatePrintServers
透過集合功能整理內容
你可以依據偏好儲存及分類內容。
HTTP 要求
POST https://admin.googleapis.com/admin/directory/v1/{parent=customers/*}/chrome/printServers:batchCreatePrintServers
這個網址使用 gRPC 轉碼語法。
路徑參數
參數 |
parent |
string
必要欄位。客戶 Google Workspace 帳戶的專屬 ID。 格式:customers/{id}
|
要求主體
要求主體的資料會採用以下結構:
欄位 |
requests[] |
object (CreatePrintServerRequest )
必要欄位。要建立的 PrintServer 資源清單 (每批最多 50 個)。
|
回應主體
欄位 |
printServers[] |
object (PrintServer )
已成功建立的列印伺服器清單,並填入 ID。
|
failures[] |
object (PrintServerFailureInfo )
建立失敗項目清單。由於未建立列印伺服器,因此未填入 PrintServer ID。
|
授權範圍
需要下列 OAuth 範圍:
https://www.googleapis.com/auth/admin.chrome.printers
詳情請參閱授權指南。
CreatePrintServerRequest
JSON 表示法 |
{
"parent": string,
"printServer": {
object (PrintServer )
}
} |
欄位 |
parent |
string
必要欄位。客戶 Google Workspace 帳戶的專屬 ID。 格式:customers/{id}
|
printServer |
object (PrintServer )
必要欄位。要建立的列印伺服器。如要將列印伺服器置於特定機構單位 (OU) 下方,請填入 orgUnitId 。否則系統會在根 OU 下建立列印伺服器。 您可以使用 Directory API 擷取 orgUnitId 。
|
除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權,程式碼範例則為阿帕契 2.0 授權。詳情請參閱《Google Developers 網站政策》。Java 是 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). |"]]