Delete Dynamic NICs from an instance

This page describes how to delete a Dynamic Network Interface (NIC) from an existing virtual machine (VM) instance.

For an overview of multi-NIC, see Multiple network interfaces .

To view an instance's existing network interfaces, see View network interfaces for an instance .

Delete a Dynamic NIC

Delete Dynamic NICs by using the following procedures. To prevent a possible error when deleting a Dynamic NIC by instance update , don't delete Dynamic NICs from individual instances by updating instance properties.

gcloud

To delete a Dynamic NIC from an existing instance, use the instances network-interfaces delete command .

gcloud beta compute instances network-interfaces delete INSTANCE_NAME 
\
    --zone= ZONE 
\
    --network-interface= DYNAMIC_NIC_NAME 

Replace the following:

  • INSTANCE_NAME : the name of the instance to create
  • ZONE : the zone of the instance
  • DYNAMIC_NIC_NAME : the name of the Dynamic NIC to delete, such as nic0.2

To delete Dynamic NICs from an a managed instance group (MIG), see instance-groups managed set-instance-template .

API

To delete a Dynamic NIC from an existing instance, use the instances.deleteNetworkInterface method .

POST https://compute.googleapis.com/compute/beta/projects/ PROJECT_ID 
/zones/ ZONE 
/instances/ INSTANCE_NAME 
/deleteNetworkInterface?networkInterfaceName= DYNAMIC_NIC_NAME 

Replace the following:

  • PROJECT_ID : the ID of the project that contains the instance
  • ZONE : the zone that contains the instance
  • INSTANCE_NAME : the name of the instance to delete the Dynamic NIC from
  • DYNAMIC_NIC_NAME : the name of the Dynamic NIC to delete, such as nic0.2

To delete Dynamic NICs from an a managed instance group (MIG), see instanceGroupManagers.setInstanceTemplate .

Create a Mobile Website
View Site in Mobile | Classic
Share by: