public interface ServerApi
ServerAsyncApi
,
Modifier and Type | Method and Description |
---|---|
void |
changeAdminPass(String id,
String adminPass)
Change the administrative password to a server.
|
void |
confirmResizeServer(String id)
Confirm a resize operation.
|
String |
createImageFromServer(String name,
String id)
Create an image from a server.
|
ServerCreated |
createServer(String name,
String imageRef,
String flavorRef,
CreateServerOptions... options)
Create a new server
|
Boolean |
deleteServer(String id)
Terminate and delete a server.
|
Server |
getServer(String id)
List details of the specified server
|
Set<? extends Resource> |
listServers()
List all servers (IDs, names, links)
|
Set<? extends Server> |
listServersInDetail()
List all servers (all details)
|
void |
rebootServer(String id,
RebootType rebootType)
Reboot a server.
|
void |
rebuildServer(String id,
RebuildServerOptions... options)
Rebuild a server.
|
void |
renameServer(String id,
String newName)
Rename a server.
|
void |
resizeServer(String id,
String flavorId)
Resize a server to a new flavor size.
|
void |
revertResizeServer(String id)
Revert a resize operation.
|
void |
startServer(String id)
Start a server
|
void |
stopServer(String id)
Stop a server
|
Set<? extends Resource> listServers()
Set<? extends Server> listServersInDetail()
Server getServer(String id)
id
- id of the serverServerCreated createServer(String name, String imageRef, String flavorRef, CreateServerOptions... options)
name
- name of the server to createimageRef
- reference to the image for the server to useflavorRef
- reference to the flavor to use when creating the serveroptions
- optional parameters to be passed into the server creation
requestBoolean deleteServer(String id)
id
- id of the servervoid startServer(String id)
id
- id of the servervoid stopServer(String id)
id
- id of the servervoid rebootServer(String id, RebootType rebootType)
id
- id of the serverrebootType
- The type of reboot to perform (Hard/Soft)void resizeServer(String id, String flavorId)
id
- id of the serverflavorId
- id of the new flavor to usevoid confirmResizeServer(String id)
id
- id of the servervoid revertResizeServer(String id)
id
- id of the servervoid rebuildServer(String id, RebuildServerOptions... options)
id
- id of the serveroptions
- Optional parameters to the rebuilding operation.void changeAdminPass(String id, String adminPass)
id
- id of the serveradminPass
- The new administrative password to usevoid renameServer(String id, String newName)
id
- id of the servernewName
- The new name for the serverCopyright © 2009-2012 jclouds. All Rights Reserved.