Method: customers.policies.networks.defineNetwork

  • The defineNetwork method is used to create a new network.

  • The HTTP request for defining a network is a POST request to a specific URL that includes the customer identifier.

  • The request requires path parameters including the customer ID and a request body containing the target resource, name, and detailed network settings.

  • The response body for a successful request includes the network ID, the target resource, and the detailed network settings of the newly created network.

  • Defining a network requires the https://www.googleapis.com/auth/chrome.management.policy OAuth scope for authorization.

Define a new network.

HTTP request

POST https://chromepolicy.googleapis.com/v1/{customer=customers/*}/policies/networks:defineNetwork

The URL uses gRPC Transcoding syntax.

Path parameters

Parameters
customer

string

Required. The customer who will own this new network.

Request body

The request body contains data with the following structure:

JSON representation
{
  "targetResource": string,
  "name": string,
  "settings": [
    {
      object (NetworkSetting)
    }
  ]
}
Fields
targetResource

string

Required. The target resource on which this new network will be defined. The following resources are supported: * Organizational Unit ("orgunits/{orgunit_id}")

name

string

Required. name of the new created network.

settings[]

object (NetworkSetting)

Required. Detailed network settings.

Response body

Response object for creating a network.

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

JSON representation
{
  "networkId": string,
  "targetResource": string,
  "settings": [
    {
      object (NetworkSetting)
    }
  ]
}
Fields
networkId

string

Network ID of the new created network.

targetResource

string

The target resource on which this new network will be defined. The following resources are supported: * Organizational Unit ("orgunits/{orgunit_id}")

settings[]

object (NetworkSetting)

Detailed network settings of the new created network

Authorization scopes

Requires the following OAuth scope:

  • https://www.googleapis.com/auth/chrome.management.policy