public interface BlockVolumeService extends RestService
| Modifier and Type | Method and Description |
|---|---|
Volume |
create(Volume volume)
Creates a new Block Storage Volume
|
VolumeType |
createVolumeType(VolumeType volumeType)
Creates a new volume type with the specified name
|
ActionResponse |
delete(String volumeId)
Deletes the specified volume
|
void |
deleteVolumeType(String volumeTypeId)
Deletes the specified VolumeType
|
ActionResponse |
extend(String volumeId,
Integer newSize)
Extends the specified volume size.
|
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 Volume> |
list(Map<String,String> filteringParams)
Returns list of Block Storage volumes filtered by parameters.
|
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
|
ActionResponse |
readOnlyModeUpdate(String volumeId,
boolean readonly)
Updates volume read-only access-mode flag
|
ActionResponse |
resetState(String volumeId,
Volume.Status status)
Resets the specified volume status.
|
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()
void deleteVolumeType(String volumeTypeId)
volumeTypeId - the volume type identifierVolumeType createVolumeType(VolumeType volumeType)
volumeType - the volumeType for createList<? extends Volume> list()
List<? extends Volume> list(Map<String,String> filteringParams)
filteringParams - map (name, value) of filtering parametersVolume get(String volumeId)
volumeId - the volume identifierActionResponse delete(String volumeId)
volumeId - the volume identifierActionResponse forceDelete(String volumeId)
volumeId - the volume idActionResponse resetState(String volumeId, Volume.Status status)
volumeId - the volume idstatus - new volume statusActionResponse extend(String volumeId, Integer newSize)
volumeId - the volume idnewSize - new volume sizeVolume 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()
ActionResponse readOnlyModeUpdate(String volumeId, boolean readonly)
volumeId - ID of volume to updatereadonly - enables or disables update of volume to read-only access modeCopyright © 2017. All rights reserved.