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 ServiceResponse
createSnapshot
(ComputeServer server, Map opts) Request to create a snapshot for the given compute serverdefault ServiceResponse
deleteSnapshot
(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 ServiceResponse
deleteSnapshots
(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 ServiceResponse
revertSnapshot
(ComputeServer server, Snapshot snapshot, Map opts) Request to restore a snapshot to a given compute server
-
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
-
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
-
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
-