Interface VolumeApi
@Consumes("application/json")
@Path("/volumes")
public interface VolumeApi
Provides access to the Volume API.
This API strictly handles creating and managing Volumes. To attach a Volume to a Server you need to use the
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptioncreate(int sizeGB, CreateVolumeOptions... options) Creates a new VolumebooleanDelete a Volume.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> Returns a detailed list of Volumes.
-
Method Details
-
list
Returns a summary list of Volumes.- Returns:
- The list of Volumes
-
listInDetail
@Named("volume:list") @GET @Path("/detail") com.google.common.collect.FluentIterable<? extends Volume> listInDetail()Returns a detailed list of Volumes.- Returns:
- The list of Volumes
-
get
Return data about the given Volume.- Parameters:
volumeId- Id of the Volume- Returns:
- Details of a specific Volume
-
create
@Named("volume:create") @POST @Produces("application/json") Volume create(int sizeGB, CreateVolumeOptions... options) Creates a new Volume- Parameters:
options- See CreateVolumeOptionsvolumeId- Id of the Volume- Returns:
- The new Volume
-
delete
Delete a Volume. The Volume status must be Available or Error.- Parameters:
volumeId- Id of the Volume- Returns:
- true if successful, false otherwise
-