org.jclouds.glesys.features
Interface ArchiveApi


public interface ArchiveApi

Provides synchronous access to Archive requests.

Author:
Adam Lowe
See Also:
ArchiveAsyncApi,

Method Summary
 Archive changePassword(String username, String password)
          Change the password for an archive user.
 Archive createWithCredentialsAndSize(String username, String password, int size)
          Create a new backup volume.
 void delete(String username)
          Delete an archive volume.
 Archive get(String username)
          Get detailed information about an archive volume.
 ArchiveAllowedArguments getAllowedArguments()
          Lists the allowed arguments for some of the functions in this module such as archive size.
 com.google.common.collect.FluentIterable<Archive> list()
          Lists all active disks on this account.
 Archive resize(String username, int size)
          Resize an archive volume.
 

Method Detail

list

com.google.common.collect.FluentIterable<Archive> list()
Lists all active disks on this account.


get

Archive get(String username)
Get detailed information about an archive volume.

Parameters:
username - the username associated with the archive
Returns:
the archive information or null if not found

createWithCredentialsAndSize

Archive createWithCredentialsAndSize(String username,
                                     String password,
                                     int size)
Create a new backup volume.

Parameters:
username - the archive username, this must be prefixed by Glesys account name (in lower case) and an underscore, ex. "c100005_archive1"
password - the new password
size - the new size required in GB

delete

void delete(String username)
Delete an archive volume. All files on the volume

Parameters:
username - the username associated with the archive

resize

Archive resize(String username,
               int size)
Resize an archive volume. It is only possible to upgrade the size of the disk. Downgrading is currently not supported. If you need to downgrade, please create a new volume and transfer all data to the new volume. Then delete the old volume.

Parameters:
username - the username associated with the archive
size - the new size required, see #getAllowedArguments for valid values

changePassword

Archive changePassword(String username,
                       String password)
Change the password for an archive user.

Parameters:
username - the archive username
password - the new password

getAllowedArguments

ArchiveAllowedArguments getAllowedArguments()
Lists the allowed arguments for some of the functions in this module such as archive size.



Copyright © 2009-2013 The Apache Software Foundation. All Rights Reserved.