Package com.morpheusdata.core.providers
Interface ProvisionProvider.SnapshotFacet
- Enclosing interface:
- ProvisionProvider
public static interface ProvisionProvider.SnapshotFacet
Provides methods for interacting with provisioned vms to manage associated snapshots
- Since:
- 0.15.3
-
Method Summary
Modifier and TypeMethodDescriptiondefault ServiceResponsecreateLinkedClone(ComputeServer server, Snapshot snapshot) Request to build a linked clone from a given vm and snapshotdefault ServiceResponsecreateSnapshot(ComputeServer server, Map opts) Request to create a snapshot for the given compute serverdefault ServiceResponsecreateSnapshot(Instance instance, Map opts) Request to create a snapshot for the given instancedefault ServiceResponsedeleteSnapshot(Snapshot snapshot, Map opts) Request to delete a snapshot for a given compute server It only needs to be deleted from the cloud, Morpheus will handle the cleanup of snapshot database records after a successful responsedefault ServiceResponsedeleteSnapshots(ComputeServer server, Map opts) Request to delete all snapshots for a given compute server They only need to be deleted from the cloud, Morpheus will handle the cleanup of snapshot database records after a successful responsedefault ServiceResponsedeleteSnapshots(Instance instance, Map opts) Request to delete all snapshots for a given instance They only need to be deleted from the cloud, Morpheus will handle the cleanup of snapshot database records after a successful responsedefault ServiceResponserevertSnapshot(ComputeServer server, Snapshot snapshot, Map opts) Request to restore a snapshot to a given compute serverdefault ServiceResponserevertSnapshot(Instance instance, Snapshot snapshot, Map opts) Request to restore a snapshot to a given instance
-
Method Details
-
createSnapshot
Request to create a snapshot for the given compute server- Parameters:
server- server to snapshotopts- additional options including the requested name and description of the snapshot- Returns:
- Success or failure
- Since:
- 0.13.8
-
createSnapshot
Request to create a snapshot for the given instance- Parameters:
instance- to snapshotopts- additional options including the requested name and description of the snapshot- Returns:
- Success or failure
-
deleteSnapshots
Request to delete all snapshots for a given compute server They only need to be deleted from the cloud, Morpheus will handle the cleanup of snapshot database records after a successful response- Parameters:
server- server to remove snapshots fromopts- additional options- Returns:
- Success or failure
- Since:
- 0.13.8
-
deleteSnapshots
Request to delete all snapshots for a given instance They only need to be deleted from the cloud, Morpheus will handle the cleanup of snapshot database records after a successful response- Parameters:
instance- server to remove snapshots fromopts- additional options- Returns:
- Success or failure
-
deleteSnapshot
Request to delete a snapshot for a given compute server It only needs to be deleted from the cloud, Morpheus will handle the cleanup of snapshot database records after a successful response- Parameters:
snapshot- snapshot to deleteopts- additional options will include serverId of the server the snapshot belongs to- Returns:
- Success or failure
- Since:
- 0.13.8
-
revertSnapshot
Request to restore a snapshot to a given compute server- Parameters:
snapshot- snapshot to restoreserver- server to restore to snapshot toopts- additional options- Returns:
- Success or failure
- Since:
- 0.13.8
-
revertSnapshot
Request to restore a snapshot to a given instance- Parameters:
snapshot- snapshot to restoreinstance- server to restore to snapshot toopts- additional options- Returns:
- Success or failure
-
createLinkedClone
Request to build a linked clone from a given vm and snapshot- Parameters:
server- the vmsnapshot- the specific snapshot to use- Returns:
- Success or failure
-