Package org.ovirt.engine.sdk4.services
Interface DisksService.AddRequest
-
- All Superinterfaces:
Request<DisksService.AddRequest,DisksService.AddResponse>
- Enclosing interface:
- DisksService
public static interface DisksService.AddRequest extends Request<DisksService.AddRequest,DisksService.AddResponse>
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
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description DisksService.AddRequest
disk(DiskBuilder disk)
The disk.DisksService.AddRequest
disk(Disk disk)
-
-
-
Method Detail
-
disk
DisksService.AddRequest disk(Disk disk)
-
disk
DisksService.AddRequest disk(DiskBuilder disk)
The disk.
-
-