Interface DiskAttachmentsService

  • All Superinterfaces:
    Service
    All Known Implementing Classes:
    DiskAttachmentsServiceImpl

    public interface DiskAttachmentsService
    extends Service
    This service manages the set of disks attached to a virtual machine. Each attached disk is represented by a <>, containing the bootable flag, the disk interface and the reference to the disk.
    • Method Detail

      • add

        DiskAttachmentsService.AddRequest add()
        Adds a new disk attachment to the virtual machine. The `attachment` parameter can contain just a reference, if the disk already exists: [source,xml] ---- true true ide true ---- Or it can contain the complete representation of the disk, if the disk doesn't exist yet: [source,xml] ---- true true ide true mydisk 1024 ... ---- In this case the disk will be created and then attached to the virtual machine. In both cases, use the following URL for a virtual machine with an id `345`: [source] ---- POST /ovirt-engine/api/vms/345/diskattachments ---- IMPORTANT: The server accepts requests that don't contain the `active` attribute, but the effect is undefined. In some cases the disk will be automatically activated and in other cases it won't. To avoid issues it is strongly recommended to always include the `active` attribute with the desired value.
      • list

        DiskAttachmentsService.ListRequest list()
        List the disk that are attached to the virtual machine. The order of the returned list of disks attachments isn't guaranteed.
      • attachmentService

        DiskAttachmentService attachmentService​(String id)
        Reference to the service that manages a specific attachment.
      • service

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