Class VmNicsServiceImpl

    • Method Detail

      • add

        public VmNicsService.AddRequest add()
        Description copied from interface: VmNicsService
        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 ====
        Specified by:
        add in interface VmNicsService
      • service

        public Service service​(String path)
        Description copied from interface: VmNicsService
        Service locator method, returns individual service on which the URI is dispatched.
        Specified by:
        service in interface VmNicsService