public interface ServerApi
ServerAsyncApi,
| Modifier and Type | Method and Description |
|---|---|
void |
changeAdminPass(String id,
String adminPass)
Change the administrative password to a server.
|
void |
confirmResize(String id)
Confirm a resize operation.
|
ServerCreated |
create(String name,
String imageRef,
String flavorRef,
CreateServerOptions... options)
Create a new server
|
String |
createImageFromServer(String name,
String id)
Create an image from a server.
|
boolean |
delete(String id)
Terminate and delete a server.
|
void |
deleteMetadata(String id,
String key)
Delete a metadata item from a server.
|
Server |
get(String id)
List details of the specified server
|
com.google.common.base.Optional<Map<String,String>> |
getDiagnostics(String id)
Get usage information about the server such as CPU usage, Memory and IO.
|
Map<String,String> |
getMetadata(String id)
List all metadata for a server.
|
String |
getMetadata(String id,
String key)
Update the metadata for a server.
|
PagedIterable<? extends Resource> |
list()
List all servers (IDs, names, links)
|
PaginatedCollection<? extends Resource> |
list(PaginationOptions options) |
PagedIterable<? extends Server> |
listInDetail()
List all servers (all details)
|
PaginatedCollection<? extends Server> |
listInDetail(PaginationOptions options) |
void |
reboot(String id,
RebootType rebootType)
Reboot a server.
|
void |
rebuild(String id,
RebuildServerOptions... options)
Rebuild a server.
|
void |
rename(String id,
String newName)
Rename a server.
|
void |
resize(String id,
String flavorId)
Resize a server to a new flavor size.
|
void |
revertResize(String id)
Revert a resize operation.
|
Map<String,String> |
setMetadata(String id,
Map<String,String> metadata)
Set the metadata for a server.
|
void |
start(String id)
Start a server
|
void |
stop(String id)
Stop a server
|
Map<String,String> |
updateMetadata(String id,
Map<String,String> metadata)
Update the metadata for a server.
|
String |
updateMetadata(String id,
String key,
String value)
Set a metadata item for a server.
|
PagedIterable<? extends Resource> list()
PaginatedCollection<? extends Resource> list(PaginationOptions options)
PagedIterable<? extends Server> listInDetail()
PaginatedCollection<? extends Server> listInDetail(PaginationOptions options)
Server get(String id)
id - id of the serverServerCreated create(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 delete(String id)
id - id of the servervoid start(String id)
id - id of the servervoid stop(String id)
id - id of the servervoid reboot(String id, RebootType rebootType)
id - id of the serverrebootType - The type of reboot to perform (Hard/Soft)void resize(String id, String flavorId)
id - id of the serverflavorId - id of the new flavor to usevoid confirmResize(String id)
id - id of the servervoid revertResize(String id)
id - id of the servervoid rebuild(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 rename(String id, String newName)
id - id of the servernewName - The new name for the serverString createImageFromServer(String name, String id)
name - The name of the new imageid - id of the serverMap<String,String> getMetadata(String id)
id - id of the serverMap<String,String> setMetadata(String id, Map<String,String> metadata)
id - id of the servermetadata - a Map containing the metadataMap<String,String> updateMetadata(String id, Map<String,String> metadata)
id - id of the servermetadata - a Map containing the metadata@Nullable String getMetadata(String id, String key)
id - id of the imagemetadata - a Map containing the metadataString updateMetadata(String id, String key, String value)
id - id of the imagekey - the name of the metadata itemvalue - the value of the metadata itemvoid deleteMetadata(String id, String key)
id - id of the imagekey - the name of the metadata itemcom.google.common.base.Optional<Map<String,String>> getDiagnostics(String id)
id - id of the serverCopyright © 2009-2013 jclouds. All Rights Reserved.