Method: services.enableVpcServiceControls

Stay organized with collections Save and categorize content based on your preferences.

Enables VPC service controls for a connection.

HTTP request

PATCH https://servicenetworking.googleapis.com/v1/{parent=services/*}:enableVpcServiceControls

The URL uses gRPC Transcoding syntax.

Path parameters

Parameters
parent

string

The service that is managing peering connectivity for a service producer's organization. For Google services that support this functionality, this value is services/servicenetworking.googleapis.com.

Request body

The request body contains data with the following structure:

JSON representation
{
  "consumerNetwork": string
}
Fields
consumerNetwork

string

Required. The network that the consumer is using to connect with services. Must be in the form of projects/{project}/global/networks/{network} {project} is a project number, as in '12345' {network} is network name.

Response body

If successful, the response body contains an instance of Operation.

Authorization Scopes

Requires one of the following OAuth scopes:

  • https://www.googleapis.com/auth/service.management
  • https://www.googleapis.com/auth/cloud-platform

For more information, see the Authentication Overview.