@Consumes(value="application/json")
@Path(value="/snapshots")
public interface SnapshotApi
Modifier and Type | Method and Description |
---|---|
Snapshot |
create(String volumeId,
CreateSnapshotOptions... options)
Creates a new Snapshot.
|
boolean |
delete(String snapshotId)
Delete a Snapshot.
|
Snapshot |
get(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.
|
@Named(value="snapshot:list") @GET com.google.common.collect.FluentIterable<? extends Snapshot> list()
@Named(value="snapshot:list") @GET @Path(value="/detail") com.google.common.collect.FluentIterable<? extends Snapshot> listInDetail()
@Named(value="snapshot:get") @GET @Path(value="/{id}") @Nullable Snapshot get(@PathParam(value="id") String snapshotId)
snapshotId
- Id of the Snapshot@Named(value="snapshot:create") @POST @Produces(value="application/json") Snapshot create(String volumeId, CreateSnapshotOptions... options)
volumeId
- The Volume Id from which to create the Snapshotoptions
- See CreateSnapshotOptions@Named(value="snapshot:delete") @DELETE @Path(value="/{id}") boolean delete(@PathParam(value="id") String snapshotId)
snapshotId
- Id of the SnapshotCopyright © 2009-2018 The Apache Software Foundation. All Rights Reserved.