Method: admin.directory.v1.customers.chrome.printServers.batchCreatePrintServers

Creates multiple print servers.

HTTP request

POST https://admin.googleapis.com/admin/directory/v1/{parent=customers/*}/chrome/printServers:batchCreatePrintServers

The URL uses gRPC Transcoding syntax.

Path parameters

Parameters
parent

string

Required. The unique ID of the customer's Google Workspace account.

Format: customers/{id}

Request body

The request body contains data with the following structure:

JSON representation
{
  "requests": [
    {
      object (CreatePrintServerRequest)
    }
  ]
}
Fields
requests[]

object (CreatePrintServerRequest)

Required. A list of PrintServer resources to be created (max 50 per batch).

Response body

If successful, the response body contains data with the following structure:

JSON representation
{
  "printServers": [
    {
      object (PrintServer)
    }
  ],
  "failures": [
    {
      object (PrintServerFailureInfo)
    }
  ]
}
Fields
printServers[]

object (PrintServer)

A list of successfully created print servers with their IDs populated.

failures[]

object (PrintServerFailureInfo)

A list of create failures. PrintServer IDs are not populated, as print servers were not created.

Authorization scopes

Requires the following OAuth scope:

  • https://www.googleapis.com/auth/admin.chrome.printers

For more information, see the Authorization guide.

CreatePrintServerRequest

Request for adding a new print server.

JSON representation
{
  "parent": string,
  "printServer": {
    object (PrintServer)
  }
}
Fields
parent

string

Required. The unique ID of the customer's Google Workspace account.

Format: customers/{id}

printServer

object (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.