Skip to main content

networks

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

Overview

Namenetworks
TypeResource
Idgoogle.servicenetworking.networks

Fields

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

NameAccessible byRequired ParamsDescription
getSELECTnetworksId, projectsId, servicesIdService 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 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 networksId = '{{ networksId }}'
AND projectsId = '{{ projectsId }}'
AND servicesId = '{{ servicesId }}';