|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
@Beta public interface VolumeAttachmentApi
Provides access to the OpenStack Compute (Nova) Volume Attachments Extension API. This API strictly handles attaching Volumes to Servers. To create and manage Volumes you need to use one of the following APIs: 1. The Cinder API If your OpenStack deployment is Folsom or later and it supports the Cinder block storage service, use this API.
2. The nova-volume API
If your OpenStack deployment is Essex or earlier and it supports the nova-volume extension, use this API.,
VolumeApi| Method Summary | |
|---|---|
VolumeAttachment |
attachVolumeToServerAsDevice(String volumeId,
String serverId,
String device)
Attach a Volume to a Server. |
boolean |
detachVolumeFromServer(String volumeId,
String serverId)
Detach a Volume from a server. |
VolumeAttachment |
getAttachmentForVolumeOnServer(String volumeId,
String serverId)
Get a specific Volume Attachment for a Volume and Server. |
com.google.common.collect.FluentIterable<VolumeAttachment> |
listAttachmentsOnServer(String serverId)
List Volume Attachments for a given Server. |
| Method Detail |
|---|
@Named(value="volumeAttachment:list") com.google.common.collect.FluentIterable<VolumeAttachment> listAttachmentsOnServer(String serverId)
serverId - The ID of the Server
@Named(value="volumeAttachment:get")
@Nullable
VolumeAttachment getAttachmentForVolumeOnServer(String volumeId,
String serverId)
volumeId - The ID of the VolumeserverId - The ID of the Server
@Named(value="volumeAttachment:attach")
VolumeAttachment attachVolumeToServerAsDevice(String volumeId,
String serverId,
String device)
serverId - The ID of the ServervolumeId - The ID of the Volumedevice - The name of the device this Volume will be identified as in the Server (e.g. /dev/vdc)
@Named(value="volumeAttachment:detach")
boolean detachVolumeFromServer(String volumeId,
String serverId)
volumeId - The ID of the VolumeserverId - The ID of the Server
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||