Modifier and Type | Method and Description |
---|---|
ServerDetails |
clone(String serverid,
String hostname,
CloneServerOptions... options)
Clone a server
|
ServerDetails |
createWithHostnameAndRootPassword(ServerSpec serverSpec,
String hostname,
String rootPassword,
CreateServerOptions... options)
Create a new server
|
void |
destroy(String id,
DestroyServerOptions keepIp)
Destroy a server
|
ServerDetails |
get(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,AllowedArgumentsForCreateServer> |
getAllowedArgumentsForCreateByPlatform()
Get information about the OS templates available
|
Console |
getConsole(String id)
Get information about how to connect to a server via VNC
|
SortedMap<String,ServerLimit> |
getLimits(String id)
Get detailed information about a server's limits (for OpenVZ only).
|
ResourceUsage |
getResourceUsage(String id,
String resource,
String resolution)
Return resource usage over time for server
|
ServerStatus |
getStatus(String id,
ServerStatusOptions... options)
Get detailed information about a server status including up-time and
hardware usage (cpu, disk, memory and bandwidth)
|
ServerDetails |
hardStop(String id)
hard stop a server
|
com.google.common.collect.FluentIterable<Server> |
list()
Get a list of all servers on this account.
|
com.google.common.collect.FluentIterable<OSTemplate> |
listTemplates()
Get information about valid arguments to #createServer for each platform
|
ServerDetails |
reboot(String id)
Reboot a server
|
SortedMap<String,ServerLimit> |
resetLimit(String id,
String type)
Reset the fail count for a server limit (for OpenVZ only).
|
ServerDetails |
resetPassword(String id,
String password)
Reset the root password of a server
|
ServerDetails |
start(String id)
Start a server
|
ServerDetails |
stop(String id)
Stop a server
|
ServerDetails |
update(String serverid,
UpdateServerOptions options)
Update the configuration of a server
|
@Named(value="server:list") com.google.common.collect.FluentIterable<Server> list()
@Named(value="server:details") ServerDetails get(String id)
id
- id of the server@Named(value="server:status") ServerStatus getStatus(String id, ServerStatusOptions... options)
id
- id of the serveroptions
- optional parameters@Named(value="server:limits") SortedMap<String,ServerLimit> getLimits(String id)
id
- id of the server@Named(value="server:console") Console getConsole(String id)
id
- id of the server@Named(value="server:allowedarguments") Map<String,AllowedArgumentsForCreateServer> getAllowedArgumentsForCreateByPlatform()
@Named(value="server:templates") com.google.common.collect.FluentIterable<OSTemplate> listTemplates()
@Named(value="server:resetlimit") SortedMap<String,ServerLimit> resetLimit(String id, String type)
id
- id of the servertype
- the type of limit to reset@Named(value="server:reboot") ServerDetails reboot(String id)
id
- id of the server@Named(value="server:start") ServerDetails start(String id)
id
- id of the server@Named(value="server:stop") ServerDetails stop(String id)
id
- id of the server@Named(value="server:stop:hard") ServerDetails hardStop(String id)
id
- id of the server@Named(value="server:create") ServerDetails createWithHostnameAndRootPassword(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@Named(value="server:clone") ServerDetails clone(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@Named(value="server:edit") ServerDetails update(String serverid, UpdateServerOptions options)
serverid
- the serverId of the server to editoptions
- the settings to change@Named(value="server:destroy") void destroy(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@Named(value="server:resetpassword") ServerDetails resetPassword(String id, String password)
id
- the id of the serverpassword
- the new password to use@Named(value="server:resourceusage") ResourceUsage getResourceUsage(String id, String resource, String resolution)
id
- the id of the serverresource
- the name of the resource to retrieve usage information for (e.g. "cpuusage")resolution
- the time-period to extract data for (one of "minute", "hour" or "day)Copyright © 2009-2016 The Apache Software Foundation. All Rights Reserved.