public interface ServerApi
Modifier and Type | Method and Description |
---|---|
String |
createServer(Server.Request.CreatePayload payload)
Creates a Virtual Server within an existing data center.
|
boolean |
deleteServer(String id)
Deletes an existing Virtual Server.
|
List<Server> |
getAllServers() |
Server |
getServer(String identifier) |
String |
resetServer(String id)
Resets an existing virtual server (POWER CYCLE).
|
String |
startServer(String id)
Starts an existing virtual server
Server may receive new public IP addresses if necessary
Billing will continue
|
String |
stopServer(String id)
Stops an existing virtual server forcefully (HARD stop)
Server will be forcefully powered off.
|
String |
updateServer(Server.Request.UpdatePayload payload)
Updates parameters of an existing virtual server device.
|
@Named(value="server:getall") List<Server> getAllServers()
@Named(value="server:get") Server getServer(String identifier)
identifier
- Identifier of the virtual server@Named(value="server:start") String startServer(String id)
id
- Identifier of the target virtual server@Named(value="server:stop") String stopServer(String id)
id
- Identifier of the target virtual server@Named(value="server:reset") String resetServer(String id)
id
- Identifier of the target virtual server@Named(value="server:create") String createServer(Server.Request.CreatePayload payload)
payload
- Payload@Named(value="server:update") String updateServer(Server.Request.UpdatePayload payload)
payload
- Payload@Named(value="server:delete") boolean deleteServer(String id)
id
- Identifier of the target virtual serverCopyright © 2009-2016 The Apache Software Foundation. All Rights Reserved.