Skip to main content

networks

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

Overview

Namenetworks
TypeResource
Idgoogle.servicenetworking.networks

Fields

The following fields are returned by SELECT queries:

Successful response

NameDatatypeDescription
cloudsqlConfigsarrayRepresents one or multiple Cloud SQL configurations.
consumerExportCustomRoutesbooleanExport custom routes flag value for peering from consumer to producer.
consumerExportSubnetRoutesWithPublicIpbooleanExport subnet routes with public ip flag value for peering from consumer to producer.
consumerImportCustomRoutesbooleanImport custom routes flag value for peering from consumer to producer.
consumerImportSubnetRoutesWithPublicIpbooleanImport subnet routes with public ip flag value for peering from consumer to producer.
producerExportCustomRoutesbooleanExport custom routes flag value for peering from producer to consumer.
producerExportSubnetRoutesWithPublicIpbooleanExport subnet routes with public ip flag value for peering from producer to consumer.
producerImportCustomRoutesbooleanImport custom routes flag value for peering from producer to consumer.
producerImportSubnetRoutesWithPublicIpbooleanImport subnet routes with public ip flag value for peering from producer to consumer.
producerNetworkstringOutput only. The VPC host network that is used to host managed service instances. In the format, projects/{project}/global/networks/{network} where {project} is the project number e.g. '12345' and {network} is the network name.
reservedRangesarrayOutput only. The reserved ranges associated with this private service access connection.
usedIpRangesarrayOutput only. The IP ranges already in use by consumer or producer
vpcScReferenceArchitectureEnabledbooleanOutput only. Indicates whether the VPC Service Controls reference architecture is configured for the producer VPC host network.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectservicesId, projectsId, networksIdincludeUsedIpRangesService producers use this method to get the configuration of their connection including the import/export of custom routes and subnetwork routes with public IP.

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
networksIdstring
projectsIdstring
servicesIdstring
includeUsedIpRangesboolean

SELECT examples

Service producers use this method to get the configuration of their connection including the import/export of custom routes and subnetwork routes with public IP.

SELECT
cloudsqlConfigs,
consumerExportCustomRoutes,
consumerExportSubnetRoutesWithPublicIp,
consumerImportCustomRoutes,
consumerImportSubnetRoutesWithPublicIp,
producerExportCustomRoutes,
producerExportSubnetRoutesWithPublicIp,
producerImportCustomRoutes,
producerImportSubnetRoutesWithPublicIp,
producerNetwork,
reservedRanges,
usedIpRanges,
vpcScReferenceArchitectureEnabled
FROM google.servicenetworking.networks
WHERE servicesId = '{{ servicesId }}' -- required
AND projectsId = '{{ projectsId }}' -- required
AND networksId = '{{ networksId }}' -- required
AND includeUsedIpRanges = '{{ includeUsedIpRanges }}';