Interface VolumeApi
-
@Deprecated @Beta @Consumes("application/json") public interface VolumeApi
Provides access to the OpenStack Compute (Nova) Volume extension API.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description Volume
create(int sizeGB, CreateVolumeOptions... options)
Deprecated.Please useorg.jclouds.openstack.cinder.v1.features.VolumeApi#create(int, CreateVolumeOptions)
instead.VolumeSnapshot
createSnapshot(String volumeId, CreateVolumeSnapshotOptions... options)
Deprecated.Please useorg.jclouds.openstack.cinder.v1.features.SnapshotApi#create(String, CreateVolumeSnapshotOptions)
instead.boolean
delete(String volumeId)
Deprecated.Please useVolumeApi.delete(String)
instead.boolean
deleteSnapshot(String snapshotId)
Deprecated.Please useSnapshotApi.delete(String)
instead.Volume
get(String volumeId)
Deprecated.Please useVolumeApi.get(String)
instead.VolumeSnapshot
getSnapshot(String snapshotId)
Deprecated.Please useSnapshotApi.get(String)
instead.com.google.common.collect.FluentIterable<Volume>
list()
Deprecated.Please useVolumeApi.list()
instead.com.google.common.collect.FluentIterable<Volume>
listInDetail()
Deprecated.Please useVolumeApi.listInDetail()
instead.com.google.common.collect.FluentIterable<VolumeSnapshot>
listSnapshots()
Deprecated.Please useSnapshotApi.list()
instead.com.google.common.collect.FluentIterable<VolumeSnapshot>
listSnapshotsInDetail()
Deprecated.Please useSnapshotApi.listInDetail()
instead.
-
-
-
Method Detail
-
list
@Deprecated @Named("volume:list") @GET @Path("/os-volumes") com.google.common.collect.FluentIterable<Volume> list()
Deprecated.Please useVolumeApi.list()
instead. To be removed in jclouds 2.0.Returns a summary list of snapshots.- Returns:
- the list of snapshots
-
listInDetail
@Deprecated @Named("volume:list") @GET @Path("/os-volumes/detail") com.google.common.collect.FluentIterable<Volume> listInDetail()
Deprecated.Please useVolumeApi.listInDetail()
instead. To be removed in jclouds 2.0.Returns a detailed list of volumes.- Returns:
- the list of volumes.
-
get
@Deprecated @Named("volume:get") @GET @Path("/os-volumes/{id}") @Nullable Volume get(@PathParam("id") String volumeId)
Deprecated.Please useVolumeApi.get(String)
instead. To be removed in jclouds 2.0.Return data about the given volume.- Returns:
- details of a specific snapshot.
-
create
@Deprecated @Named("volume:create") @POST @Path("/os-volumes") @Produces("application/json") Volume create(int sizeGB, CreateVolumeOptions... options)
Deprecated.Please useorg.jclouds.openstack.cinder.v1.features.VolumeApi#create(int, CreateVolumeOptions)
instead. To be removed in jclouds 2.0.Creates a new Snapshot- Returns:
- the new Snapshot
-
delete
@Deprecated @Named("volume:delete") @DELETE @Path("/os-volumes/{volumeId}") @Consumes("application/json") boolean delete(@PathParam("volumeId") String volumeId)
Deprecated.Please useVolumeApi.delete(String)
instead. To be removed in jclouds 2.0.Delete a snapshot.- Returns:
- true if successful
-
listSnapshots
@Deprecated @Named("volume:listSnapshots") @GET @Path("/os-snapshots") com.google.common.collect.FluentIterable<VolumeSnapshot> listSnapshots()
Deprecated.Please useSnapshotApi.list()
instead. To be removed in jclouds 2.0.Returns a summary list of snapshots.- Returns:
- the list of snapshots
-
listSnapshotsInDetail
@Deprecated @Named("volume:listSnapshots") @GET @Path("/os-snapshots/detail") com.google.common.collect.FluentIterable<VolumeSnapshot> listSnapshotsInDetail()
Deprecated.Please useSnapshotApi.listInDetail()
instead. To be removed in jclouds 2.0.Returns a summary list of snapshots.- Returns:
- the list of snapshots
-
getSnapshot
@Deprecated @Named("volume:getSnapshot") @GET @Path("/os-snapshots/{id}") @Nullable VolumeSnapshot getSnapshot(@PathParam("id") String snapshotId)
Deprecated.Please useSnapshotApi.get(String)
instead. To be removed in jclouds 2.0.Return data about the given snapshot.- Returns:
- details of a specific snapshot.
-
createSnapshot
@Deprecated @Named("volume:createSnapshot") @POST @Path("/os-snapshots") @Produces("application/json") VolumeSnapshot createSnapshot(String volumeId, CreateVolumeSnapshotOptions... options)
Deprecated.Please useorg.jclouds.openstack.cinder.v1.features.SnapshotApi#create(String, CreateVolumeSnapshotOptions)
instead. To be removed in jclouds 2.0.Creates a new Snapshot.- Returns:
- the new Snapshot
-
deleteSnapshot
@Deprecated @Named("volume:deleteSnapshot") @DELETE @Path("/os-snapshots/{id}") boolean deleteSnapshot(@PathParam("id") String snapshotId)
Deprecated.Please useSnapshotApi.delete(String)
instead. To be removed in jclouds 2.0.Delete a snapshot.- Returns:
- true if successful
-
-