Interface VolumeApi


  • @Deprecated
    @Beta
    @Consumes("application/json")
    public interface VolumeApi
    Deprecated.
    Please use VolumeApi or VolumeApi instead. To be removed in jclouds 2.0.
    Provides access to the OpenStack Compute (Nova) Volume extension API.
    • Method Detail

      • list

        @Deprecated
        @Named("volume:list")
        @GET
        @Path("/os-volumes")
        com.google.common.collect.FluentIterable<Volume> list()
        Deprecated.
        Please use VolumeApi.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 use VolumeApi.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 use VolumeApi.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 use org.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 use VolumeApi.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 use SnapshotApi.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 use SnapshotApi.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 use SnapshotApi.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 use org.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 use SnapshotApi.delete(String) instead. To be removed in jclouds 2.0.
        Delete a snapshot.
        Returns:
        true if successful