|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ServerApi
Provides synchronous access to Server.
ServerAsyncApi,
| Method Summary | |
|---|---|
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<Resource> |
listServers()
List all servers (IDs, names, links) |
Set<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 |
| Method Detail |
|---|
Set<Resource> listServers()
Set<Server> listServersInDetail()
Server getServer(String id)
id - id of the server
ServerCreated 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
request
Boolean deleteServer(String id)
id - id of the server
void startServer(String id)
id - id of the servervoid stopServer(String id)
id - id of the server
void 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 server
void rebuildServer(String id,
RebuildServerOptions... options)
id - id of the serveroptions - Optional paramaters to the rebuilding operation.
void changeAdminPass(String id,
String adminPass)
id - id of the serveradminPass - The new administrative password to use
void renameServer(String id,
String newName)
id - id of the servernewName - The new name for the server
String createImageFromServer(String name,
String id)
name - The name of the new imageid - id of the server
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||