Modifier and Type | Method and Description |
---|---|
AsyncCreateResponse |
attachVolume(String volumeId,
String virtualMachineId)
Attaches a disk volume to a virtual machine.
|
AsyncCreateResponse |
createVolumeFromCustomDiskOfferingInZone(String name,
String diskOfferingId,
String zoneId,
int size)
Create a volume with given name, size and diskOfferingId
|
AsyncCreateResponse |
createVolumeFromDiskOfferingInZone(String name,
String diskOfferingId,
String zoneId)
Create a volume with given name and diskOfferingId
|
AsyncCreateResponse |
createVolumeFromSnapshotInZone(String name,
String snapshotId,
String zoneId)
Create a volume with given name and snapshotId
|
void |
deleteVolume(String id)
Deletes a detached disk volume
|
AsyncCreateResponse |
detachVolume(String volumeId)
Detaches a disk volume from a virtual machine.
|
Volume |
getVolume(String id)
Get volume by id
|
Set<Volume> |
listVolumes(ListVolumesOptions... options)
List volumes
|
@Named(value="listVolumes") Set<Volume> listVolumes(ListVolumesOptions... options)
@Named(value="listVolumes") Volume getVolume(String id)
id
- the volume id to retrieve@Named(value="createVolume") AsyncCreateResponse createVolumeFromDiskOfferingInZone(String name, String diskOfferingId, String zoneId)
name
- name of the volumediskOfferingId
- the ID of the disk offering.zoneId
- the ID of the availability zoneAsyncCreateResponse createVolumeFromCustomDiskOfferingInZone(String name, String diskOfferingId, String zoneId, int size)
name
- name of the volumediskOfferingId
- the ID of the disk offering (the offering should have the custom disk size flag set)zoneId
- the ID of the availability zonesize
- the size of volume required (in GB)@Named(value="createVolume") AsyncCreateResponse createVolumeFromSnapshotInZone(String name, String snapshotId, String zoneId)
name
- name of the volumesnapshotId
- Snapshot id to be used while creating the volumezoneId
- the ID of the availability zone@Named(value="attachVolume") AsyncCreateResponse attachVolume(String volumeId, String virtualMachineId)
volumeId
- the ID of the disk volumevirtualMachineId
- the ID of the virtual machine@Named(value="detachVolume") AsyncCreateResponse detachVolume(String volumeId)
volumeId
- the ID of the disk volume@Named(value="deleteVolume") void deleteVolume(String id)
id
- id of the volumeCopyright © 2009-2016 The Apache Software Foundation. All Rights Reserved.