networks_peering
Creates, updates, deletes, gets or lists a networks_peering
resource.
Overview
Name | networks_peering |
Type | Resource |
Id | google.compute.networks_peering |
Fields
SELECT
not supported for this resource, use SHOW METHODS
to view available operations for the resource.
Methods
Name | Accessible by | Required Params | Description |
---|---|---|---|
add_peering | INSERT | network, project | Adds a peering to the specified network. |
remove_peering | DELETE | network, project | Removes a peering from the specified network. |
update_peering | UPDATE | network, project | Updates the specified network peering with the data included in the request. You can only modify the NetworkPeering.export_custom_routes field and the NetworkPeering.import_custom_routes field. |
INSERT
example
Use the following StackQL query and manifest file to create a new networks_peering
resource.
- All Properties
- Manifest
/*+ create */
INSERT INTO google.compute.networks_peering (
network,
project,
name,
peerNetwork,
autoCreateRoutes,
networkPeering
)
SELECT
'{{ network }}',
'{{ project }}',
'{{ name }}',
'{{ peerNetwork }}',
{{ autoCreateRoutes }},
'{{ networkPeering }}'
;
- name: your_resource_model_name
props:
- name: name
value: string
- name: peerNetwork
value: string
- name: autoCreateRoutes
value: boolean
- name: networkPeering
value:
- name: name
value: string
- name: network
value: string
- name: state
value: string
- name: stateDetails
value: string
- name: autoCreateRoutes
value: boolean
- name: exportCustomRoutes
value: boolean
- name: importCustomRoutes
value: boolean
- name: exchangeSubnetRoutes
value: boolean
- name: exportSubnetRoutesWithPublicIp
value: boolean
- name: importSubnetRoutesWithPublicIp
value: boolean
- name: peerMtu
value: integer
- name: stackType
value: string
UPDATE
example
Updates a networks_peering
resource.
/*+ update */
UPDATE google.compute.networks_peering
SET
networkPeering = '{{ networkPeering }}'
WHERE
network = '{{ network }}'
AND project = '{{ project }}';
DELETE
example
Deletes the specified networks_peering
resource.
/*+ delete */
DELETE FROM google.compute.networks_peering
WHERE network = '{{ network }}'
AND project = '{{ project }}';