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

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

Methods

NameAccessible byRequired 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.

INSERT example

Use the following StackQL query and manifest file to create a new services_subnetwork resource.

/*+ create */
INSERT INTO google.servicenetworking.services_subnetwork (
servicesId,
servicesId1,
servicesId2,
role,
ipPrefixLength,
skipRequestedAddressValidation,
consumerNetwork,
internalRange,
secondaryIpRangeSpecs,
description,
useCustomComputeIdempotencyWindow,
requestedRanges,
allowSubnetCidrRoutesOverlap,
computeIdempotencyWindow,
subnetwork,
requestedAddress,
outsideAllocationPublicIpRange,
privateIpv6GoogleAccess,
consumer,
subnetworkUsers,
purpose,
region,
checkServiceNetworkingUsePermission
)
SELECT
'{{ servicesId }}',
'{{ servicesId1 }}',
'{{ servicesId2 }}',
'{{ role }}',
'{{ ipPrefixLength }}',
{{ skipRequestedAddressValidation }},
'{{ consumerNetwork }}',
'{{ internalRange }}',
'{{ secondaryIpRangeSpecs }}',
'{{ description }}',
{{ useCustomComputeIdempotencyWindow }},
'{{ requestedRanges }}',
{{ allowSubnetCidrRoutesOverlap }},
'{{ computeIdempotencyWindow }}',
'{{ subnetwork }}',
'{{ requestedAddress }}',
'{{ outsideAllocationPublicIpRange }}',
'{{ privateIpv6GoogleAccess }}',
'{{ consumer }}',
'{{ subnetworkUsers }}',
'{{ purpose }}',
'{{ region }}',
{{ checkServiceNetworkingUsePermission }}
;