Product SiteDocumentation Site

2.12. Attach NIC to Virtual Machine

The following example creates a virtual network interface to connect the example virtual machine to the rhevm network.
Example 2.14. Attach a NIC to the virtual machine
POST /rhevm-api/vms/6efc0cfa-8495-4a96-93e5-ee490328cf48/nics HTTP/1.1
Accept: application/xml
Content-type: application/xml

<nic>
  <name>nic1</name>
  <network>
    <name>rhevm</name>
  </network>
</nic>