Add the ability to add/remove NICs to/from virtual machines and to change the default NIC of a virtual machine
This will allow users to add/remove NICs from User Virtual Machines. It will also allow users to change which NIC is the default NIC.
These API calls can only happen while the VM is in a Running or a Stopped state. Otherwise an exception will be thrown.
The new Asyncronous calls are:
Add a new NIC to the specified VM on the specified Network
parameter |
description |
required |
|---|---|---|
virtualmachineid |
Virtual Machine ID |
true |
networkid |
Network ID |
true |
ipaddress |
IP address |
false |
Event Type: NIC.CREATE
Weill throw an exception if the selected network is not in the same zone as the VM.
Remove specified NIC from the specified VM.
parameter |
description |
required |
|---|---|---|
virtualmachineid |
Virtual Machine ID |
true |
nicid |
NIC ID |
true |
Event Type: NIC.DELETE
Will throw an exception and fail when trying to remove the default NIC.
Will throw an exception and fail if NIC is not a NIC for the specified VM.
Update the specified NIC to be the default NIC for the specified VM.
parameter |
description |
required |
|---|---|---|
virtualmachineid |
Virtual Machine ID |
true |
nicid |
NIC ID |
true |
Event Type: NIC.UPDATE
Will throw an exception and fail when trying to set the current default NIC.
Will throw an exception and fail if NIC is not a NIC for the specified VM.
This has been tested and works with the KVM and XEN hypervisors.