Method: networks.placements.batchCreate

API to batch create Placement objects.

HTTP request

POST https://admanager.googleapis.com/v1/{parent}/placements:batchCreate

Path parameters

Parameters
parent

string

Required. The parent resource where the Placements will be created. Format: networks/{networkCode} The parent field in the CreatePlacementRequest messages match this field.

Request body

The request body contains data with the following structure:

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

object (CreatePlacementRequest)

Required. The Placement objects to create. A maximum of 100 objects can be created in a batch.

Response body

Response object for placements.batchCreate method.

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

JSON representation
{
  "placements": [
    {
      object (Placement)
    }
  ]
}
Fields
placements[]

object (Placement)

The Placement objects created.

Authorization scopes

Requires the following OAuth scope:

  • https://www.googleapis.com/auth/admanager

For more information, see the OAuth 2.0 Overview.

CreatePlacementRequest

Request object for placements.create method.

JSON representation
{
  "parent": string,
  "placement": {
    object (Placement)
  }
}
Fields
parent

string

Required. The parent resource where this Placement will be created. Format: networks/{networkCode}

placement

object (Placement)

Required. The Placement to create.