@Consumes(value="application/json")
@Path(value="/volumes")
public interface VolumeApi
VolumeAttachmentApi| Modifier and Type | Method and Description |
|---|---|
Volume |
create(int sizeGB,
CreateVolumeOptions... options)
Creates a new Volume
|
boolean |
delete(String volumeId)
Delete a Volume.
|
Volume |
get(String volumeId)
Return data about the given Volume.
|
com.google.common.collect.FluentIterable<? extends Volume> |
list()
Returns a summary list of Volumes.
|
com.google.common.collect.FluentIterable<? extends Volume> |
listInDetail()
Returns a detailed list of Volumes.
|
@Named(value="volume:list") @GET com.google.common.collect.FluentIterable<? extends Volume> list()
@Named(value="volume:list") @GET @Path(value="/detail") com.google.common.collect.FluentIterable<? extends Volume> listInDetail()
@Named(value="volume:get")
@GET
@Path(value="/{id}")
@Nullable
Volume get(@PathParam(value="id")
String volumeId)
volumeId - Id of the Volume@Named(value="volume:create") @POST @Produces(value="application/json") Volume create(int sizeGB, CreateVolumeOptions... options)
volumeId - Id of the Volumeoptions - See CreateVolumeOptions@Named(value="volume:delete")
@DELETE
@Path(value="/{id}")
boolean delete(@PathParam(value="id")
String volumeId)
volumeId - Id of the VolumeCopyright © 2009-2018 The Apache Software Foundation. All Rights Reserved.