networks
Creates, updates, deletes, gets or lists a networks
resource.
Overview
Name | networks |
Type | Resource |
Id | google.servicenetworking.networks |
Fields
The following fields are returned by SELECT
queries:
- get
Successful response
Name | Datatype | Description |
---|---|---|
cloudsqlConfigs | array | Represents one or multiple Cloud SQL configurations. |
consumerExportCustomRoutes | boolean | Export custom routes flag value for peering from consumer to producer. |
consumerExportSubnetRoutesWithPublicIp | boolean | Export subnet routes with public ip flag value for peering from consumer to producer. |
consumerImportCustomRoutes | boolean | Import custom routes flag value for peering from consumer to producer. |
consumerImportSubnetRoutesWithPublicIp | boolean | Import subnet routes with public ip flag value for peering from consumer to producer. |
producerExportCustomRoutes | boolean | Export custom routes flag value for peering from producer to consumer. |
producerExportSubnetRoutesWithPublicIp | boolean | Export subnet routes with public ip flag value for peering from producer to consumer. |
producerImportCustomRoutes | boolean | Import custom routes flag value for peering from producer to consumer. |
producerImportSubnetRoutesWithPublicIp | boolean | Import subnet routes with public ip flag value for peering from producer to consumer. |
producerNetwork | string | Output 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. |
reservedRanges | array | Output only. The reserved ranges associated with this private service access connection. |
usedIpRanges | array | Output only. The IP ranges already in use by consumer or producer |
vpcScReferenceArchitectureEnabled | boolean | Output 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:
Name | Accessible by | Required Params | Optional Params | Description |
---|---|---|---|---|
get | select | servicesId , projectsId , networksId | includeUsedIpRanges | 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. |
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.
Name | Datatype | Description |
---|---|---|
networksId | string | |
projectsId | string | |
servicesId | string | |
includeUsedIpRanges | boolean |
SELECT
examples
- get
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 }}';