|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface VolumeClient
Provides synchronous access to CloudStack Event features.
Method Summary | |
---|---|
AsyncCreateResponse |
attachVolume(long volumeId,
long virtualMachineId)
Attaches a disk volume to a virtual machine. |
AsyncCreateResponse |
createVolumeFromDiskOfferingInZone(String name,
long diskOfferingId,
long zoneId)
Create a volume with given name and diskOfferingId |
AsyncCreateResponse |
createVolumeFromSnapshotInZone(String name,
long snapshotId,
long zoneId)
Create a volume with given name and snapshotId |
void |
deleteVolume(long id)
Deletes a attached disk volume |
AsyncCreateResponse |
detachVolume(long volumeId)
Detaches a disk volume to a virtual machine. |
Volume |
getVolume(long id)
Get volume by id |
Set<Volume> |
listVolumes(ListVolumesOptions... options)
List volumes |
Method Detail |
---|
AsyncCreateResponse createVolumeFromDiskOfferingInZone(String name, long diskOfferingId, long zoneId)
name
- name of the volumediskOfferingId
- the ID of the disk offering.zoneId
- the ID of the availability zone
AsyncCreateResponse createVolumeFromSnapshotInZone(String name, long snapshotId, long zoneId)
name
- name of the volumesnapshotId
- Snapshot id to be used while creating the volumezoneId
- the ID of the availability zone
Set<Volume> listVolumes(ListVolumesOptions... options)
Volume getVolume(long id)
id
- the volume id to retrieve
void deleteVolume(long id)
id
- id of the volumeAsyncCreateResponse attachVolume(long volumeId, long virtualMachineId)
volumeId
- the ID of the disk volumevirtualMachineId
- the ID of the virtual machine
AsyncCreateResponse detachVolume(long volumeId)
volumeId
- the ID of the disk volume
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |