Skip to main content

services_subnetwork

Creates, updates, deletes, gets or lists a services_subnetwork resource.

Overview

Nameservices_subnetwork
TypeResource
Idgoogle.servicenetworking.services_subnetwork

Fields

The following fields are returned by SELECT queries:

SELECT not supported for this resource, use SHOW METHODS to view available operations for the resource.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
add_subnetworkinsertservicesId, servicesId1, servicesId2For service producers, provisions a new subnet in a peered service's shared VPC network in the requested region and with the requested size that's expressed as a CIDR range (number of leading bits of ipV4 network mask). The method checks against the assigned allocated ranges to find a non-conflicting IP address range. The method will reuse a subnet if subsequent calls contain the same subnet name, region, and prefix length. This method will make producer's tenant project to be a shared VPC service project as needed.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
servicesIdstring
servicesId1string
servicesId2string

INSERT examples

For service producers, provisions a new subnet in a peered service's shared VPC network in the requested region and with the requested size that's expressed as a CIDR range (number of leading bits of ipV4 network mask). The method checks against the assigned allocated ranges to find a non-conflicting IP address range. The method will reuse a subnet if subsequent calls contain the same subnet name, region, and prefix length. This method will make producer's tenant project to be a shared VPC service project as needed.

INSERT INTO google.servicenetworking.services_subnetwork (
data__consumerNetwork,
data__subnetwork,
data__region,
data__ipPrefixLength,
data__description,
data__subnetworkUsers,
data__consumer,
data__requestedAddress,
data__secondaryIpRangeSpecs,
data__privateIpv6GoogleAccess,
data__requestedRanges,
data__outsideAllocationPublicIpRange,
data__purpose,
data__checkServiceNetworkingUsePermission,
data__useCustomComputeIdempotencyWindow,
data__computeIdempotencyWindow,
data__allowSubnetCidrRoutesOverlap,
data__role,
data__internalRange,
data__skipRequestedAddressValidation,
servicesId,
servicesId1,
servicesId2
)
SELECT
'{{ consumerNetwork }}',
'{{ subnetwork }}',
'{{ region }}',
{{ ipPrefixLength }},
'{{ description }}',
'{{ subnetworkUsers }}',
'{{ consumer }}',
'{{ requestedAddress }}',
'{{ secondaryIpRangeSpecs }}',
'{{ privateIpv6GoogleAccess }}',
'{{ requestedRanges }}',
'{{ outsideAllocationPublicIpRange }}',
'{{ purpose }}',
{{ checkServiceNetworkingUsePermission }},
{{ useCustomComputeIdempotencyWindow }},
'{{ computeIdempotencyWindow }}',
{{ allowSubnetCidrRoutesOverlap }},
'{{ role }}',
'{{ internalRange }}',
{{ skipRequestedAddressValidation }},
'{{ servicesId }}',
'{{ servicesId1 }}',
'{{ servicesId2 }}'
RETURNING
name,
done,
error,
metadata,
response
;