v1

latestOpenAPI 3.0.0Creative Commons Attribution 3.02026-07-1325131186.2 KB
services

Creates a private connection that establishes a VPC Network Peering connection to a VPC network in the service producer's organization. The administrator of the service consumer's VPC network invokes this method. The administrator must assign one or more allocated IP ranges for provisioning subnetworks in the service producer's VPC network. This connection is used for all supported services in the service producer's organization, so it only needs to be invoked once.

post/v1/{+parent}/connections

Path parameters

parentstring required

Required. 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

peeringstring

Output only. The name of the VPC Network Peering connection that was created by the service producer.

servicestring

Output only. The name of the peering service that's associated with this connection, in the following format: services/{service name}.

networkstring

Required. The name of service consumer's VPC network that's connected with service producer network, in the following format: projects/{project}/global/networks/{network}. {project} is a project number, such as in 12345 that includes the VPC service consumer's VPC network. {network} is the name of the service consumer's VPC network.

reservedPeeringRangesstring[]

The name of one or more allocated IP address ranges for this service producer of type PEERING. Note that invoking CreateConnection method with a different range when connection is already established will not modify already provisioned service producer subnetworks. If CreateConnection method is invoked repeatedly to reconnect when peering connection had been disconnected on the consumer side, leaving this field empty will restore previously allocated IP ranges.

Response

Successful response