Skip to main content

instances_network_interface

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

Overview

Nameinstances_network_interface
TypeResource
Idgoogle.compute.instances_network_interface

Fields

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

Methods

NameAccessible byRequired ParamsDescription
update_network_interfaceUPDATEinstance, networkInterface, project, zoneUpdates an instance's network interface. This method can only update an interface's alias IP range and attached network. See Modifying alias IP ranges for an existing instance for instructions on changing alias IP ranges. See Migrating a VM between networks for instructions on migrating an interface. This method follows PATCH semantics.

UPDATE example

Updates a instances_network_interface resource.

/*+ update */
UPDATE google.compute.instances_network_interface
SET
network = '{{ network }}',
subnetwork = '{{ subnetwork }}',
networkIP = '{{ networkIP }}',
ipv6Address = '{{ ipv6Address }}',
internalIpv6PrefixLength = '{{ internalIpv6PrefixLength }}',
name = '{{ name }}',
accessConfigs = '{{ accessConfigs }}',
ipv6AccessConfigs = '{{ ipv6AccessConfigs }}',
aliasIpRanges = '{{ aliasIpRanges }}',
fingerprint = '{{ fingerprint }}',
stackType = '{{ stackType }}',
ipv6AccessType = '{{ ipv6AccessType }}',
queueCount = '{{ queueCount }}',
nicType = '{{ nicType }}',
networkAttachment = '{{ networkAttachment }}'
WHERE
instance = '{{ instance }}'
AND networkInterface = '{{ networkInterface }}'
AND project = '{{ project }}'
AND zone = '{{ zone }}';