@Beta
public interface VolumeAttachmentApi
Modifier and Type | Method and Description |
---|---|
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<? extends VolumeAttachment> |
listAttachmentsOnServer(String serverId)
List Volume Attachments for a given Server.
|
com.google.common.collect.FluentIterable<? extends VolumeAttachment> listAttachmentsOnServer(String serverId)
serverId
- The ID of the ServerVolumeAttachment getAttachmentForVolumeOnServer(String volumeId, String serverId)
volumeId
- The ID of the VolumeserverId
- The ID of the ServerVolumeAttachment 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)boolean detachVolumeFromServer(String volumeId, String serverId)
volumeId
- The ID of the VolumeserverId
- The ID of the ServerCopyright © 2009-2014 The Apache Software Foundation. All Rights Reserved.