public interface BlockVolumeService extends RestService
| Modifier and Type | Method and Description |
|---|---|
Volume |
create(Volume volume)
Creates a new Block Storage Volume
|
ActionResponse |
delete(String volumeId)
Deletes the specified volume
|
ActionResponse |
forceDelete(String volumeId)
Attempt forced removal of volume, regardless of the state.
|
Volume |
get(String volumeId)
Gets a Block Storage volume by ID
|
List<? extends Volume> |
list()
Lists summary information for all Block Storage volumes that the tenant who submits the request can access.
|
List<? extends VolumeType> |
listVolumeTypes()
The volume type defines the characteristics of a volume
|
ActionResponse |
migrate(String volumeId,
String hostService,
boolean forceHostCopy)
migrate a volume to another host and service
|
BlockVolumeTransferService |
transfer()
Returns the API used to transfer a Volume from one tenant/project to another
|
ActionResponse |
update(String volumeId,
String name,
String description)
OpenStack only allows name or description to be updated.
|
VolumeUploadImage |
uploadToImage(String volumeId,
UploadImageData data)
Uploads a volume to the image service
|
List<? extends VolumeType> listVolumeTypes()
List<? extends Volume> list()
Volume get(String volumeId)
volumeId - the volume identifierActionResponse delete(String volumeId)
volumeId - the volume identifierActionResponse forceDelete(String volumeId)
volumeId - the volume idVolume create(Volume volume)
volume - the volume for createVolumeUploadImage uploadToImage(String volumeId, UploadImageData data)
volumeId - the volume identifier to uploaddata - the data about the volume being uploaded (required)ActionResponse update(String volumeId, String name, String description)
volumeId - the volume idname - the name to update (null indicates no name update)description - the description to update (null indicates no description update)ActionResponse migrate(String volumeId, String hostService, boolean forceHostCopy)
volumeId - the volume idforceHostCopy - hostService - the destination host and service ,like kvmnode002021.cnsuning.com@lvmdriverBlockVolumeTransferService transfer()