Modifier and Type | Method and Description |
---|---|
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.
|
@Named(value="archive:list") @POST @Path(value="/archive/list/format/json") @Consumes(value="application/json") com.google.common.collect.FluentIterable<Archive> list()
@Named(value="archive:details") @POST @Path(value="/archive/details/format/json") @Consumes(value="application/json") Archive get(@FormParam(value="username") String username)
username
- the username associated with the archive@Named(value="archive:create") @POST @Path(value="/archive/create/format/json") @Consumes(value="application/json") Archive createWithCredentialsAndSize(@FormParam(value="username") String username, @FormParam(value="password") String password, @FormParam(value="size") int size)
username
- the archive username, this must be prefixed by Glesys account name (in lower case) and an
underscore, ex. "c100005_archive1"password
- the new passwordsize
- the new size required in GB@Named(value="archive:delete") @POST @Path(value="/archive/delete/format/json") void delete(@FormParam(value="username") String username)
username
- the username associated with the archive@Named(value="archive:resize") @POST @Path(value="/archive/resize/format/json") @Consumes(value="application/json") Archive resize(@FormParam(value="username") String username, @FormParam(value="size") int size)
username
- the username associated with the archivesize
- the new size required, see #getAllowedArguments for valid values@Named(value="archive:changepassword") @POST @Path(value="/archive/changepassword/format/json") @Consumes(value="application/json") Archive changePassword(@FormParam(value="username") String username, @FormParam(value="password") String password)
username
- the archive usernamepassword
- the new password@Named(value="archive:allowedarguments") @GET @Path(value="/archive/allowedarguments/format/json") @Consumes(value="application/json") ArchiveAllowedArguments getAllowedArguments()
Copyright © 2009-2018 The Apache Software Foundation. All Rights Reserved.