Package org.ovirt.engine.sdk4.services
Interface SnapshotsService
-
- All Superinterfaces:
Service
- All Known Implementing Classes:
SnapshotsServiceImpl
public interface SnapshotsService extends Service
Manages the set of snapshots of a storage domain or virtual machine.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interface
SnapshotsService.AddRequest
Creates a virtual machine snapshot.static interface
SnapshotsService.AddResponse
Creates a virtual machine snapshot.static interface
SnapshotsService.ListRequest
Returns the list of snapshots of the storage domain or virtual machine.static interface
SnapshotsService.ListResponse
Returns the list of snapshots of the storage domain or virtual machine.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description SnapshotsService.AddRequest
add()
Creates a virtual machine snapshot.SnapshotsService.ListRequest
list()
Returns the list of snapshots of the storage domain or virtual machine.Service
service(String path)
Service locator method, returns individual service on which the URI is dispatched.SnapshotService
snapshotService(String id)
-
-
-
Method Detail
-
add
SnapshotsService.AddRequest add()
Creates a virtual machine snapshot. For example, to create a new snapshot for virtual machine `123` send a request like this: [source] ---- POST /ovirt-engine/api/vms/123/snapshots ---- With a request body like this: [source,xml] ----My snapshot My snapshot 456 > attribute is `true`. That means that the content of the memory of the virtual machine will be included in the snapshot, and it also means that the virtual machine will be paused for a longer time. That can negatively affect applications that are very sensitive to timing (NTP servers, for example). In those cases make sure that you set the attribute to `false`: [source,xml] ---- My snapshot false
-
list
SnapshotsService.ListRequest list()
Returns the list of snapshots of the storage domain or virtual machine. The order of the returned list of snapshots isn't guaranteed.
-
snapshotService
SnapshotService snapshotService(String id)
-
-