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 Details

    • createSnapshot

      default ServiceResponse createSnapshot(ComputeServer server, Map opts)
      Request to create a snapshot for the given compute server
      Parameters:
      server - server to snapshot
      opts - additional options including the requested name and description of the snapshot
      Returns:
      Success or failure
      Since:
      0.13.8
    • deleteSnapshots

      default 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 response
      Parameters:
      server - server to remove snapshots from
      opts - additional options
      Returns:
      Success or failure
      Since:
      0.13.8
    • deleteSnapshot

      default 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 response
      Parameters:
      snapshot - snapshot to delete
      opts - additional options will include serverId of the server the snapshot belongs to
      Returns:
      Success or failure
      Since:
      0.13.8
    • revertSnapshot

      default ServiceResponse revertSnapshot(ComputeServer server, Snapshot snapshot, Map opts)
      Request to restore a snapshot to a given compute server
      Parameters:
      snapshot - snapshot to restore
      server - server to restore to snapshot to
      opts - additional options
      Returns:
      Success or failure
      Since:
      0.13.8