|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface VolumeApi
Provides synchronous access to cloudstack via their REST API.
| Method Summary | |
|---|---|
AsyncCreateResponse |
attachVolume(String volumeId,
String virtualMachineId)
Deletes a attached disk volume |
AsyncCreateResponse |
createVolumeFromCustomDiskOfferingInZone(String name,
String diskOfferingId,
String zoneId,
int size)
List volumes |
AsyncCreateResponse |
createVolumeFromDiskOfferingInZone(String name,
String diskOfferingId,
String zoneId)
Create a volume with given name and snapshotId |
AsyncCreateResponse |
createVolumeFromSnapshotInZone(String name,
String snapshotId,
String zoneId)
Get volume by id |
void |
deleteVolume(String id)
Detaches a disk volume to a virtual machine. |
AsyncCreateResponse |
detachVolume(String volumeId)
Attaches a disk volume to a virtual machine. |
Volume |
getVolume(String id)
Create a volume with given name, size and diskOfferingId |
Set<Volume> |
listVolumes(ListVolumesOptions... options)
Create a volume with given name and diskOfferingId |
| Method Detail |
|---|
@Named(value="listVolumes") Set<Volume> listVolumes(ListVolumesOptions... options)
name - name of the volumediskOfferingId - the ID of the disk offering.zoneId - the ID of the availability zone
@Named(value="listVolumes") Volume getVolume(String id)
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 createVolumeFromDiskOfferingInZone(String name,
String diskOfferingId,
String zoneId)
name - name of the volumesnapshotId - Snapshot id to be used while creating the volumezoneId - the ID of the availability zone
AsyncCreateResponse createVolumeFromCustomDiskOfferingInZone(String name,
String diskOfferingId,
String zoneId,
int size)
@Named(value="createVolume")
AsyncCreateResponse createVolumeFromSnapshotInZone(String name,
String snapshotId,
String zoneId)
id - the volume id to retrieve
@Named(value="attachVolume")
AsyncCreateResponse attachVolume(String volumeId,
String virtualMachineId)
id - id of the volume@Named(value="detachVolume") AsyncCreateResponse detachVolume(String volumeId)
volumeId - the ID of the disk volumevirtualMachineId - the ID of the virtual machine
@Named(value="deleteVolume") void deleteVolume(String id)
volumeId - the ID of the disk volume
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||