org.jclouds.openstack.nova.v2_0.extensions
Interface VolumeApi


public interface VolumeApi

Provides synchronous access to Volumes.

Author:
Adam Lowe
See Also:
VolumeAsyncApi

Method Summary
 VolumeAttachment attachVolumeToServerAsDevice(String volumeId, String serverId, String device)
          Attach a volume to an instance
 VolumeSnapshot createSnapshot(String volumeId, CreateVolumeSnapshotOptions... options)
          Creates a new Snapshot
 Volume createVolume(int sizeGB, CreateVolumeOptions... options)
          Creates a new Snapshot
 Boolean deleteSnapshot(String snapshotId)
          Delete a snapshot.
 Boolean deleteVolume(String volumeId)
          Delete a snapshot.
 Boolean detachVolumeFromServer(String server_id, String volumeId)
          Detach a Volume from an instance.
 VolumeAttachment getAttachmentForVolumeOnServer(String volumeId, String serverId)
          Get a specific attached volume.
 VolumeSnapshot getSnapshot(String snapshotId)
          Return data about the given snapshot.
 Volume getVolume(String volumeId)
          Return data about the given volume.
 Set<VolumeAttachment> listAttachmentsOnServer(String serverId)
          List volume attachments for a given instance.
 Set<VolumeSnapshot> listSnapshots()
          Returns a summary list of snapshots.
 Set<VolumeSnapshot> listSnapshotsInDetail()
          Returns a summary list of snapshots.
 Set<Volume> listVolumes()
          Returns a summary list of snapshots.
 Set<Volume> listVolumesInDetail()
          Returns a detailed list of volumes.
 

Method Detail

listVolumes

Set<Volume> listVolumes()
Returns a summary list of snapshots.

Returns:
the list of snapshots

listVolumesInDetail

Set<Volume> listVolumesInDetail()
Returns a detailed list of volumes.

Returns:
the list of volumes.

getVolume

Volume getVolume(String volumeId)
Return data about the given volume.

Returns:
details of a specific snapshot.

createVolume

Volume createVolume(int sizeGB,
                    CreateVolumeOptions... options)
Creates a new Snapshot

Returns:
the new Snapshot

deleteVolume

Boolean deleteVolume(String volumeId)
Delete a snapshot.

Returns:
true if successful

listAttachmentsOnServer

Set<VolumeAttachment> listAttachmentsOnServer(String serverId)
List volume attachments for a given instance.

Returns:
all Floating IPs

getAttachmentForVolumeOnServer

VolumeAttachment getAttachmentForVolumeOnServer(String volumeId,
                                                String serverId)
Get a specific attached volume.

Returns:
data about the given volume attachment.

attachVolumeToServerAsDevice

VolumeAttachment attachVolumeToServerAsDevice(String volumeId,
                                              String serverId,
                                              String device)
Attach a volume to an instance

Returns:
data about the new volume attachment

detachVolumeFromServer

Boolean detachVolumeFromServer(String server_id,
                               String volumeId)
Detach a Volume from an instance.

Returns:
true if successful

listSnapshots

Set<VolumeSnapshot> listSnapshots()
Returns a summary list of snapshots.

Returns:
the list of snapshots

listSnapshotsInDetail

Set<VolumeSnapshot> listSnapshotsInDetail()
Returns a summary list of snapshots.

Returns:
the list of snapshots

getSnapshot

VolumeSnapshot getSnapshot(String snapshotId)
Return data about the given snapshot.

Returns:
details of a specific snapshot.

createSnapshot

VolumeSnapshot createSnapshot(String volumeId,
                              CreateVolumeSnapshotOptions... options)
Creates a new Snapshot

Returns:
the new Snapshot

deleteSnapshot

Boolean deleteSnapshot(String snapshotId)
Delete a snapshot.

Returns:
true if successful


Copyright © 2009-2012 jclouds. All Rights Reserved.