Interface DiskAttachmentService

  • All Superinterfaces:
    Service
    All Known Implementing Classes:
    DiskAttachmentServiceImpl

    public interface DiskAttachmentService
    extends Service
    This service manages the attachment of a disk to a virtual machine.
    • Method Detail

      • get

        DiskAttachmentService.GetRequest get()
        Returns the details of the attachment, including the bootable flag and link to the disk. An example of getting a disk attachment: [source] ---- GET /ovirt-engine/api/vms/123/diskattachments/456 ---- [source,xml] ---- true true virtio ----
      • remove

        DiskAttachmentService.RemoveRequest remove()
        Removes the disk attachment. This will only detach the disk from the virtual machine, but won't remove it from the system, unless the `detach_only` parameter is `false`. An example of removing a disk attachment: [source] ---- DELETE /ovirt-engine/api/vms/123/diskattachments/456?detach_only=true ----
      • update

        DiskAttachmentService.UpdateRequest update()
        Update the disk attachment and the disk properties within it. [source] ---- PUT /vms/{vm:id}/disksattachments/{attachment:id} true ide true mydisk 1024 ... ----
      • service

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