Interface SnapshotApi
-
@Consumes("application/json") @Path("/snapshots") public interface SnapshotApiProvides access to Volume Snapshots API.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Snapshotcreate(String volumeId, CreateSnapshotOptions... options)Creates a new Snapshot.booleandelete(String snapshotId)Delete a Snapshot.Snapshotget(String snapshotId)Return data about the given Snapshot.com.google.common.collect.FluentIterable<? extends Snapshot>list()Returns a summary list of Snapshots.com.google.common.collect.FluentIterable<? extends Snapshot>listInDetail()Returns a detailed list of Snapshots.
-
-
-
Method Detail
-
list
@Named("snapshot:list") @GET com.google.common.collect.FluentIterable<? extends Snapshot> list()Returns a summary list of Snapshots.- Returns:
- The list of Snapshots
-
listInDetail
@Named("snapshot:list") @GET @Path("/detail") com.google.common.collect.FluentIterable<? extends Snapshot> listInDetail()Returns a detailed list of Snapshots.- Returns:
- The list of Snapshots
-
get
@Named("snapshot:get") @GET @Path("/{id}") @Nullable Snapshot get(@PathParam("id") String snapshotId)Return data about the given Snapshot.- Parameters:
snapshotId- Id of the Snapshot- Returns:
- Details of a specific Snapshot
-
create
@Named("snapshot:create") @POST @Produces("application/json") Snapshot create(String volumeId, CreateSnapshotOptions... options)Creates a new Snapshot. The Volume status must be Available.- Parameters:
volumeId- The Volume Id from which to create the Snapshotoptions- See CreateSnapshotOptions- Returns:
- The new Snapshot
-
delete
@Named("snapshot:delete") @DELETE @Path("/{id}") boolean delete(@PathParam("id") String snapshotId)Delete a Snapshot.- Parameters:
snapshotId- Id of the Snapshot- Returns:
- true if successful, false otherwise
-
-