Package org.ovirt.engine.sdk4.services
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.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interface
DiskAttachmentService.GetRequest
Returns the details of the attachment, including the bootable flag and link to the disk.static interface
DiskAttachmentService.GetResponse
Returns the details of the attachment, including the bootable flag and link to the disk.static interface
DiskAttachmentService.RemoveRequest
Removes the disk attachment.static interface
DiskAttachmentService.RemoveResponse
Removes the disk attachment.static interface
DiskAttachmentService.UpdateRequest
Update the disk attachment and the disk properties within it.static interface
DiskAttachmentService.UpdateResponse
Update the disk attachment and the disk properties within it.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description DiskAttachmentService.GetRequest
get()
Returns the details of the attachment, including the bootable flag and link to the disk.DiskAttachmentService.RemoveRequest
remove()
Removes the disk attachment.Service
service(String path)
Service locator method, returns individual service on which the URI is dispatched.DiskAttachmentService.UpdateRequest
update()
Update the disk attachment and the disk properties within it.
-
-
-
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 ...
-
-