| 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") @GET @Consumes(value="application/json") Set<Volume> listVolumes(ListVolumesOptions... options)
@Named(value="listVolumes") @GET @Consumes(value="application/json") Volume getVolume(@QueryParam(value="id") String id)
id - the volume id to retrieve@Named(value="createVolume") @GET @Consumes(value="application/json") AsyncCreateResponse createVolumeFromDiskOfferingInZone(@QueryParam(value="name") String name, @QueryParam(value="diskofferingid") String diskOfferingId, @QueryParam(value="zoneid") String zoneId)
name - name of the volumediskOfferingId - the ID of the disk offering.zoneId - the ID of the availability zone@GET @Consumes(value="application/json") AsyncCreateResponse createVolumeFromCustomDiskOfferingInZone(@QueryParam(value="name") String name, @QueryParam(value="diskofferingid") String diskOfferingId, @QueryParam(value="zoneid") String zoneId, @QueryParam(value="size") 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") @GET @Consumes(value="application/json") AsyncCreateResponse createVolumeFromSnapshotInZone(@QueryParam(value="name") String name, @QueryParam(value="snapshotid") String snapshotId, @QueryParam(value="zoneid") 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") @GET @Consumes(value="application/json") AsyncCreateResponse attachVolume(@QueryParam(value="id") String volumeId, @QueryParam(value="virtualmachineid") String virtualMachineId)
volumeId - the ID of the disk volumevirtualMachineId - the ID of the virtual machine@Named(value="detachVolume") @GET @Consumes(value="application/json") AsyncCreateResponse detachVolume(@QueryParam(value="id") String volumeId)
volumeId - the ID of the disk volume@Named(value="deleteVolume")
@GET
void deleteVolume(@QueryParam(value="id")
String id)
id - id of the volumeCopyright © 2009-2018 The Apache Software Foundation. All Rights Reserved.