|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ServerClient
Provides synchronous access to Server.
ServerAsyncClient,
| Method Summary | |
|---|---|
ServerDetails |
cloneServer(String serverid,
String hostname,
CloneServerOptions... options)
Clone a server |
ServerDetails |
createServerWithHostnameAndRootPassword(ServerSpec serverSpec,
String hostname,
String rootPassword,
CreateServerOptions... options)
Create a new server |
ServerDetails |
destroyServer(String id,
DestroyServerOptions keepIp)
Destroy a server |
ServerDetails |
editServer(String serverid,
EditServerOptions... options)
Edit the configuration of a server |
Map<String,AllowedArgumentsForCreateServer> |
getAllowedArgumentsForCreateServerByPlatform()
Get information about valid arguments to #createServer for each platform |
Console |
getConsole(String id)
Get information about how to connect to a server via VNC |
ServerDetails |
getServerDetails(String id)
Get detailed information about a server such as hostname, hardware configuration (cpu, memory and disk), ip addresses, cost, transfer, os and more. |
Map<String,ServerLimit> |
getServerLimits(String id)
Get detailed information about a server's limits (for OpenVZ only). |
ServerStatus |
getServerStatus(String id,
ServerStatusOptions... options)
Get detailed information about a server status including up-time and hardware usage (cpu, disk, memory and bandwidth) |
void |
hardStopServer(String id)
hard stop a server |
Set<Server> |
listServers()
Get a list of all servers on this account. |
Set<OSTemplate> |
listTemplates()
Get information about the OS templates available |
ServerDetails |
rebootServer(String id)
Reboot a server |
void |
resetPassword(String id,
String password)
Reset the root password of a server |
Map<String,ServerLimit> |
resetServerLimit(String id,
String type)
Reset the fail count for a server limit (for OpenVZ only). |
void |
resourceUsage(String id,
String resource,
String resolution)
Return resource usage over time for server |
ServerDetails |
startServer(String id)
Start a server |
void |
stopServer(String id)
Stop a server |
| Method Detail |
|---|
Set<Server> listServers()
ServerDetails getServerDetails(String id)
id - id of the server
ServerStatus getServerStatus(String id,
ServerStatusOptions... options)
id - id of the serveroptions - optional parameters
Map<String,ServerLimit> getServerLimits(String id)
id - id of the server
Console getConsole(String id)
id - id of the server
Set<OSTemplate> listTemplates()
Map<String,AllowedArgumentsForCreateServer> getAllowedArgumentsForCreateServerByPlatform()
Map<String,ServerLimit> resetServerLimit(String id,
String type)
id - id of the servertype - the type of limit to resetServerDetails rebootServer(String id)
id - id of the serverServerDetails startServer(String id)
id - id of the servervoid stopServer(String id)
id - id of the servervoid hardStopServer(String id)
id - id of the server
ServerDetails createServerWithHostnameAndRootPassword(ServerSpec serverSpec,
String hostname,
String rootPassword,
CreateServerOptions... options)
hostname - the host name of the new serverrootPassword - the root password to useoptions - optional settings ex. description
ServerDetails editServer(String serverid,
EditServerOptions... options)
serverid - the serverId of the server to editoptions - the settings to change
ServerDetails cloneServer(String serverid,
String hostname,
CloneServerOptions... options)
serverid - the serverId of the server to clonehostname - the new host name of the cloned serveroptions - the settings to change
ServerDetails destroyServer(String id,
DestroyServerOptions keepIp)
id - the id of the serverkeepIp - if DestroyServerOptions.keepIp(true) the servers ip will be
retained for use in your GleSYS account
void resetPassword(String id,
String password)
id - the id of the serverpassword - the new password to use
@Beta
void resourceUsage(String id,
String resource,
String resolution)
id - the id of the serverresource - the name of the resource to retrieve usage information for
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||