Interface VmNicsService

    • Method Detail

      • add

        VmNicsService.AddRequest add()
        Adds a NIC to the virtual machine. The following example adds to the virtual machine `123` a network interface named `mynic` using `virtio` and the NIC profile `456`. [source] ---- POST /ovirt-engine/api/vms/123/nics ---- [source,xml] ---- mynic virtio ---- The following example sends that request using `curl`: [source,bash] ---- curl \ --request POST \ --header "Version: 4" \ --header "Content-Type: application/xml" \ --header "Accept: application/xml" \ --user "admin@internal:mypassword" \ --cacert /etc/pki/ovirt-engine/ca.pem \ --data ' mynic virtio ' \ https://myengine.example.com/ovirt-engine/api/vms/123/nics ---- [IMPORTANT] ==== The hotplugging feature only supports virtual machine operating systems with hotplugging operations. Example operating systems include: - Red Hat Enterprise Linux 6 - Red Hat Enterprise Linux 5 - Windows Server 2008 and - Windows Server 2003 ====
      • list

        VmNicsService.ListRequest list()
        Returns the list of NICs of the virtual machine. The order of the returned list of NICs isn't guaranteed.
      • service

        Service service​(String path)
        Service locator method, returns individual service on which the URI is dispatched.