public interface StorageApi
Modifier and Type | Method and Description |
---|---|
String |
connectStorageToServer(Storage.Request.ConnectPayload payload)
Connects a virtual storage device to an existing server.
|
String |
createStorage(Storage.Request.CreatePayload payload)
Creates a virtual storage within an existing virtual data center.
|
boolean |
deleteStorage(String id)
Deletes an existing virtual storage device.
|
String |
disconnectStorageFromServer(String storageId,
String serverId)
Disconnects a virtual storage device from a connected server.
|
List<Storage> |
getAllStorages() |
Storage |
getStorage(String id) |
String |
updateStorage(Storage.Request.UpdatePayload payload)
Updates parameters of an existing virtual storage device.
|
@Named(value="storage:getall") List<Storage> getAllStorages()
@Named(value="storage:get") Storage getStorage(String id)
id
- Storage identifier@Named(value="storage:create") String createStorage(Storage.Request.CreatePayload payload)
payload
- Payload@Named(value="storage:update") String updateStorage(Storage.Request.UpdatePayload payload)
payload
- Payload@Named(value="storage:delete") boolean deleteStorage(String id)
id
- Identifier of the target virtual storage@Named(value="storage:connect") String connectStorageToServer(Storage.Request.ConnectPayload payload)
payload
- Payload@Named(value="storage:disconnect") String disconnectStorageFromServer(String storageId, String serverId)
storageId
- Identifier of the connected virtual storageserverId
- Identifier of the connected virtual serverCopyright © 2009-2016 The Apache Software Foundation. All Rights Reserved.