Interface DiskAttachmentsService.AddRequest

  • All Superinterfaces:
    Request<DiskAttachmentsService.AddRequest,​DiskAttachmentsService.AddResponse>
    Enclosing interface:
    DiskAttachmentsService

    public static interface DiskAttachmentsService.AddRequest
    extends Request<DiskAttachmentsService.AddRequest,​DiskAttachmentsService.AddResponse>
    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.