Package org.ovirt.engine.sdk4.services
Interface SnapshotService.RestoreRequest
-
- All Superinterfaces:
Request<SnapshotService.RestoreRequest,SnapshotService.RestoreResponse>
- Enclosing interface:
- SnapshotService
public static interface SnapshotService.RestoreRequest extends Request<SnapshotService.RestoreRequest,SnapshotService.RestoreResponse>
Restores a virtual machine snapshot. For example, to restore the snapshot with identifier `456` of virtual machine with identifier `123` send a request like this: [source] ---- POST /ovirt-engine/api/vms/123/snapshots/456/restore ---- With an empty `action` in the body: [source,xml] -------- NOTE: Confirm that the commit operation is finished and the virtual machine is down before running the virtual machine.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description SnapshotService.RestoreRequest
async(Boolean async)
Indicates if the restore should be performed asynchronously.SnapshotService.RestoreRequest
disks(List<Disk> disks)
SnapshotService.RestoreRequest
disks(DiskBuilder... disks)
Specify the disks included in the snapshot's restore.SnapshotService.RestoreRequest
disks(Disk... disks)
Specify the disks included in the snapshot's restore.SnapshotService.RestoreRequest
restoreMemory(Boolean restoreMemory)
-
-
-
Method Detail
-
async
SnapshotService.RestoreRequest async(Boolean async)
Indicates if the restore should be performed asynchronously.
-
disks
SnapshotService.RestoreRequest disks(List<Disk> disks)
-
disks
SnapshotService.RestoreRequest disks(Disk... disks)
Specify the disks included in the snapshot's restore. For each disk parameter, it is also required to specify its `image_id`. For example, to restore a snapshot with an identifier `456` of a virtual machine with identifier `123`, including a disk with identifier `111` and `image_id` of `222`, send a request like this: [source] ---- POST /ovirt-engine/api/vms/123/snapshots/456/restore ---- Request body: [source,xml] ----222
-
disks
SnapshotService.RestoreRequest disks(DiskBuilder... disks)
Specify the disks included in the snapshot's restore. For each disk parameter, it is also required to specify its `image_id`. For example, to restore a snapshot with an identifier `456` of a virtual machine with identifier `123`, including a disk with identifier `111` and `image_id` of `222`, send a request like this: [source] ---- POST /ovirt-engine/api/vms/123/snapshots/456/restore ---- Request body: [source,xml] ----222
-
restoreMemory
SnapshotService.RestoreRequest restoreMemory(Boolean restoreMemory)
-
-