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 ---- If the disk profile or the quota currently used by the disk are not defined for the new storage domain, they can be explicitly specified. If they are not specified, the first available disk profile and the default quota are used. For example, to specify disk profile `987` and quota `753`, send a request body like this: [source,xml] ---- ----
    • Method Detail

      • 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.
      • 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​(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 ----