Package org.ovirt.engine.sdk4.services
Interface DiskService.CopyRequest
-
- All Superinterfaces:
Request<DiskService.CopyRequest,DiskService.CopyResponse>
- Enclosing interface:
- DiskService
public static interface DiskService.CopyRequest extends Request<DiskService.CopyRequest,DiskService.CopyResponse>
This operation copies a disk to the specified storage domain. For example, a disk can be copied using the following request: [source] ---- POST /ovirt-engine/api/disks/123/copy ---- With a request body like this: [source,xml] ----mydisk
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description DiskService.CopyRequest
async(Boolean async)
Indicates if the copy should be performed asynchronously.DiskService.CopyRequest
disk(DiskBuilder disk)
DiskService.CopyRequest
disk(Disk disk)
DiskService.CopyRequest
diskProfile(DiskProfileBuilder diskProfile)
Disk profile for the disk in the new storage domain.DiskService.CopyRequest
diskProfile(DiskProfile diskProfile)
DiskService.CopyRequest
filter(Boolean filter)
Indicates if the results should be filtered according to the permissions of the user.DiskService.CopyRequest
quota(QuotaBuilder quota)
Quota for the disk in the new storage domain.DiskService.CopyRequest
quota(Quota quota)
DiskService.CopyRequest
storageDomain(StorageDomainBuilder storageDomain)
The storage domain where the new disk is created.DiskService.CopyRequest
storageDomain(StorageDomain storageDomain)
-
-
-
Method Detail
-
async
DiskService.CopyRequest async(Boolean async)
Indicates if the copy should be performed asynchronously.
-
disk
DiskService.CopyRequest disk(Disk disk)
-
disk
DiskService.CopyRequest disk(DiskBuilder disk)
-
diskProfile
DiskService.CopyRequest diskProfile(DiskProfile diskProfile)
-
diskProfile
DiskService.CopyRequest diskProfile(DiskProfileBuilder diskProfile)
Disk profile for the disk in the new storage domain. Disk profiles are defined for storage domains, so the old disk profile will not exist in the new storage domain. If this parameter is not used, the first disk profile from the new storage domain to which the user has permissions will be assigned to the disk.
-
filter
DiskService.CopyRequest filter(Boolean filter)
Indicates if the results should be filtered according to the permissions of the user.
-
quota
DiskService.CopyRequest quota(Quota quota)
-
quota
DiskService.CopyRequest quota(QuotaBuilder quota)
Quota for the disk in the new storage domain. This optional parameter can be used to specify new quota for the disk, because the current quota may not be defined for the new storage domain. If this parameter is not used and the old quota is not defined for the new storage domain, the default (unlimited) quota will be assigned to the disk.
-
storageDomain
DiskService.CopyRequest storageDomain(StorageDomain storageDomain)
-
storageDomain
DiskService.CopyRequest storageDomain(StorageDomainBuilder storageDomain)
The storage domain where the new disk is created. This can be specified using the `id` or `name` attributes. For example, to copy a disk to the storage domain called `mydata`, send a request like this: .... POST /ovirt-engine/api/storagedomains/123/disks/789 .... With a request body like this: [source,xml] ----mydata
-
-