Interface StorageApi


  • @Consumes("text/xml")
    @Produces("text/xml")
    public interface StorageApi
    • Method Detail

      • getAllStorages

        @POST
        @Named("storage:getall")
        List<Storage> getAllStorages()
        Returns:
        Returns information about all virtual storage, such as configuration and provisioning state.
      • getStorage

        @POST
        @Named("storage:get")
        Storage getStorage​(String id)
        Parameters:
        id - Storage identifier
        Returns:
        Returns information about a virtual storage’s configuration and provisioning state.
      • createStorage

        @POST
        @Named("storage:create")
        String createStorage​(Storage.Request.CreatePayload payload)
        Creates a virtual storage within an existing virtual data center. Additional parameters can be specified, e.g. for assigning a HDD image to the storage.
        Parameters:
        payload - Payload
        Returns:
        storageId of the created storage
      • updateStorage

        @POST
        @Named("storage:update")
        String updateStorage​(Storage.Request.UpdatePayload payload)
        Updates parameters of an existing virtual storage device. It is possible to increase the storage size without reboot of an already provisioned storage. The additional capacity is not added to any partition. You have to partition the storage afterwards. Vice versa, it is not possible to decrease the storage size of an already provisioned storage.
        Parameters:
        payload - Payload
        Returns:
        Identifier of current request
      • deleteStorage

        @POST
        @Named("storage:delete")
        boolean deleteStorage​(String id)
        Deletes an existing virtual storage device.
        Parameters:
        id - Identifier of the target virtual storage
        Returns:
        Identifier of current request
      • connectStorageToServer

        @POST
        @Named("storage:connect")
        String connectStorageToServer​(Storage.Request.ConnectPayload payload)
        Connects a virtual storage device to an existing server.
        Parameters:
        payload - Payload
        Returns:
        Identifier of current request
      • disconnectStorageFromServer

        @POST
        @Named("storage:disconnect")
        String disconnectStorageFromServer​(String storageId,
                                           String serverId)
        Disconnects a virtual storage device from a connected server.
        Parameters:
        storageId - Identifier of the connected virtual storage
        serverId - Identifier of the connected virtual server
        Returns:
        Identifier of current request