Interface DiskService.MoveRequest

  • All Superinterfaces:
    Request<DiskService.MoveRequest,​DiskService.MoveResponse>
    Enclosing interface:
    DiskService

    public static interface DiskService.MoveRequest
    extends Request<DiskService.MoveRequest,​DiskService.MoveResponse>
    Moves a disk to another storage domain. For example, to move the disk with identifier `123` to a storage domain with identifier `456` send the following request: [source] ---- POST /ovirt-engine/api/disks/123/move ---- With the following request body: [source,xml] ---- ---- If the disk profile or the quota used currently by the disk aren't defined for the new storage domain, then they can be explicitly specified. If they aren't then the first available disk profile and the default quota are used. For example, to explicitly use disk profile `987` and quota `753` send a request body like this: [source,xml] ---- ----
    • Method Detail

      • diskProfile

        DiskService.MoveRequest 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.MoveRequest 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.