Package org.ovirt.engine.sdk4.services
Interface DisksService
-
- All Superinterfaces:
Service
- All Known Implementing Classes:
DisksServiceImpl
public interface DisksService extends Service
Manages the collection of disks available in the system.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interface
DisksService.AddLunRequest
Add a new lun disk to the storage domain.static interface
DisksService.AddLunResponse
Add a new lun disk to the storage domain.static interface
DisksService.AddOnStorageDomainRequest
Add a new disk to the storage domain with the specified size allocating space from the storage domain.static interface
DisksService.AddOnStorageDomainResponse
Add a new disk to the storage domain with the specified size allocating space from the storage domain.static interface
DisksService.AddRequest
Adds a new floating disk.static interface
DisksService.AddResponse
Adds a new floating disk.static interface
DisksService.ListRequest
Get list of disks.static interface
DisksService.ListResponse
Get list of disks.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description DisksService.AddRequest
add()
Adds a new floating disk.DisksService.AddLunRequest
addLun()
Add a new lun disk to the storage domain.DisksService.AddOnStorageDomainRequest
addOnStorageDomain()
Add a new disk to the storage domain with the specified size allocating space from the storage domain.DiskService
diskService(String id)
Reference to a service managing a specific disk.DisksService.ListRequest
list()
Get list of disks.Service
service(String path)
Service locator method, returns individual service on which the URI is dispatched.
-
-
-
Method Detail
-
add
DisksService.AddRequest add()
Adds a new floating disk. There are three types of disks that can be added - disk image, direct LUN and https://wiki.openstack.org/wiki/Cinder[Cinder] disk. *Adding a new image disk:* When creating a new floating image <>, the API requires the `storage_domain`, `provisioned_size` and `format` attributes. Note that block storage domains (i.e., storage domains with the < > of iSCSI or FCP) don't support the combination of the raw `format` with `sparse=true`, so `sparse=false` must be stated explicitly. To create a new floating image disk with specified `provisioned_size`, `format` and `name` on a storage domain with an id `123`, send a request as follows: [source] ---- POST /ovirt-engine/api/disks ---- With a request body as follows: [source,xml] ---- mydisk 1048576 cow mylun iscsi 10.35.10.20 3260 iqn.2017-01.com.myhost:444 myceph cinderDomain 1073741824 virtio raw b548366b-fb51-4b41-97be-733c887fe305 mydisk 1048576 cow
-
list
DisksService.ListRequest list()
Get list of disks. [source] ---- GET /ovirt-engine/api/disks ---- You will get a XML response which will look like this one: [source,xml] ----... MyDisk MyDisk description 5345845248 MyDisk alias ...ok image false ...
-
addLun
DisksService.AddLunRequest addLun()
Add a new lun disk to the storage domain.
-
addOnStorageDomain
DisksService.AddOnStorageDomainRequest addOnStorageDomain()
Add a new disk to the storage domain with the specified size allocating space from the storage domain.
-
diskService
DiskService diskService(String id)
Reference to a service managing a specific disk.
-
-