public interface ServerApi
ServerAsyncApi
,
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
|
ServerDetails |
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 valid arguments to #createServer for each platform
|
Console |
getConsole(String id)
Get information about how to connect to a server via VNC
|
Map<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 the OS templates available
|
ServerDetails |
reboot(String id)
Reboot a server
|
Map<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
|
com.google.common.collect.FluentIterable<Server> list()
ServerDetails get(String id)
id
- id of the serverServerStatus getStatus(String id, ServerStatusOptions... options)
id
- id of the serveroptions
- optional parametersMap<String,ServerLimit> getLimits(String id)
id
- id of the serverConsole getConsole(String id)
id
- id of the servercom.google.common.collect.FluentIterable<OSTemplate> listTemplates()
Map<String,AllowedArgumentsForCreateServer> getAllowedArgumentsForCreateByPlatform()
Map<String,ServerLimit> resetLimit(String id, String type)
id
- id of the servertype
- the type of limit to resetServerDetails reboot(String id)
id
- id of the serverServerDetails start(String id)
id
- id of the serverServerDetails stop(String id)
id
- id of the serverServerDetails hardStop(String id)
id
- id of the serverServerDetails 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. descriptionServerDetails update(String serverid, UpdateServerOptions options)
serverid
- the serverId of the server to editoptions
- the settings to changeServerDetails 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 changeServerDetails 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 accountServerDetails resetPassword(String id, String password)
id
- the id of the serverpassword
- the new password to use@Beta 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-2013 jclouds. All Rights Reserved.