AI-generated Key Takeaways
-
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 |
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 ( |
Fields | |
---|---|
targetResource |
Required. The target resource on which this new network will be defined. The following resources are supported: * Organizational Unit ("orgunits/{orgunit_id}") |
name |
Required. name of the new created network. |
settings[] |
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 ( |
Fields | |
---|---|
networkId |
Network ID of the new created network. |
targetResource |
The target resource on which this new network will be defined. The following resources are supported: * Organizational Unit ("orgunits/{orgunit_id}") |
settings[] |
Detailed network settings of the new created network |
Authorization scopes
Requires the following OAuth scope:
https://www.googleapis.com/auth/chrome.management.policy