Method: admin.directory.v1.customers.chrome.printServers.batchCreatePrintServers
Zadbaj o dobrą organizację dzięki kolekcji
Zapisuj i kategoryzuj treści zgodnie ze swoimi preferencjami.
Tworzy wiele serwerów wydruku.
Żądanie HTTP
POST https://admin.googleapis.com/admin/directory/v1/{parent=customers/*}/chrome/printServers:batchCreatePrintServers
Adres URL używa składni transkodowania gRPC.
Parametry ścieżki
Parametry |
parent |
string
Wymagane. Unikalny identyfikator konta Google Workspace klienta. Format: customers/{id}
|
Treść żądania
Treść żądania zawiera dane o następującej strukturze:
Pola |
requests[] |
object (CreatePrintServerRequest )
Wymagane. lista PrintServer zasobów do utworzenia (maksymalnie 50 na partię);
|
Treść odpowiedzi
W przypadku powodzenia treść żądania zawiera dane o następującej strukturze:
Pola |
printServers[] |
object (PrintServer )
Lista utworzonych serwerów wydruku z wypełnionymi identyfikatorami.
|
failures[] |
object (PrintServerFailureInfo )
Lista niepowodzeń podczas tworzenia. PrintServer Identyfikatory nie są wypełniane, ponieważ serwery wydruku nie zostały utworzone.
|
Zakresy autoryzacji
Wymaga następującego zakresu OAuth:
https://www.googleapis.com/auth/admin.chrome.printers
Więcej informacji znajdziesz w przewodniku dotyczącym autoryzacji.
CreatePrintServerRequest
Prośba o dodanie nowego serwera wydruku.
Zapis JSON |
{
"parent": string,
"printServer": {
object (PrintServer )
}
} |
Pola |
parent |
string
Wymagane. Unikalny identyfikator konta Google Workspace klienta. Format: customers/{id}
|
printServer |
object (PrintServer )
Wymagane. serwer wydruku do utworzenia; Jeśli chcesz umieścić serwer wydruku w określonej jednostce organizacyjnej (OU), wypełnij pole orgUnitId . W przeciwnym razie serwer drukowania jest tworzony w jednostce organizacyjnej sięgającej do jednostki nadrzędnej. Wartość orgUnitId można pobrać za pomocą interfejsu Directory API.
|
O ile nie stwierdzono inaczej, treść tej strony jest objęta licencją Creative Commons – uznanie autorstwa 4.0, a fragmenty kodu są dostępne na licencji Apache 2.0. Szczegółowe informacje na ten temat zawierają zasady dotyczące witryny Google Developers. Java jest zastrzeżonym znakiem towarowym firmy Oracle i jej podmiotów stowarzyszonych.
Ostatnia aktualizacja: 2025-07-25 UTC.
[null,null,["Ostatnia aktualizacja: 2025-07-25 UTC."],[],[],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). |"]]