public interface NovaClient
ExecutionException
as documented in
Future.get()
.NovaAsyncClient
,
Modifier and Type | Method and Description |
---|---|
void |
addFloatingIP(int serverId,
String ip)
Add a floating IP to the given server.
|
void |
changeAdminPass(int id,
String adminPass)
This operation allows you to change the administrative password.
|
void |
confirmResizeServer(int id)
The resize function converts an existing server to a different flavor, in essence, scaling the
server up or down.
|
Image |
createImageFromServer(String imageName,
int serverId)
This operation creates a new image for the given server ID.
|
Server |
createServer(String name,
String imageRef,
String flavorRef,
CreateServerOptions... options)
This operation asynchronously provisions a new server.
|
boolean |
deleteImage(int id)
This operation deletes an image from the system.
|
boolean |
deleteImage(String id) |
boolean |
deleteServer(int id)
This operation deletes a cloud server instance from the system.
|
boolean |
deleteServer(String id) |
Addresses |
getAddresses(int serverId)
List all server addresses
returns empty set if the server doesn't exist
|
Flavor |
getFlavor(int id)
This operation returns details of the specified flavor.
|
Flavor |
getFlavor(String uuid) |
FloatingIP |
getFloatingIP(int id)
Get floating IP details from its ID
|
Image |
getImage(int id)
This operation returns details of the specified image.
|
Image |
getImage(String id) |
SecurityGroup |
getSecurityGroup(int id)
Get a security group from its ID
|
Server |
getServer(int id)
This operation returns details of the specified server.
|
Server |
getServer(String uuid) |
Set<Flavor> |
listFlavors(ListOptions... options)
List available flavors (IDs and names only)
in order to retrieve all details, pass the option
withDetails() |
Set<FloatingIP> |
listFloatingIPs()
Get all the defined floating IPs in nova
|
Set<Image> |
listImages(ListOptions... options)
List available images (IDs and names only)
in order to retrieve all details, pass the option
withDetails() |
Set<String> |
listPrivateAddresses(int serverId)
List all private server addresses
returns empty set if the server doesn't exist
|
Set<String> |
listPublicAddresses(int serverId)
List all public server addresses
returns empty set if the server doesn't exist
|
Set<SecurityGroup> |
listSecurityGroups()
Get all the security groups
|
Set<Server> |
listServers(ListOptions... options)
List all servers (IDs and names only)
This operation provides a list of servers associated with your identity.
|
void |
rebootServer(int id,
RebootType rebootType)
The reboot function allows for either a soft or hard reboot of a server.
|
void |
rebuildServer(int id,
RebuildServerOptions... options)
The rebuild function removes all data on the server and replaces it with the specified image.
|
void |
renameServer(int id,
String newName)
This operation allows you to update the name of the server.
|
void |
resizeServer(int id,
int flavorId)
The resize function converts an existing server to a different flavor, in essence, scaling the
server up or down.
|
void |
revertResizeServer(int id)
The resize function converts an existing server to a different flavor, in essence, scaling the
server up or down.
|
Set<Server> listServers(ListOptions... options)
withDetails()
Server getServer(int id)
Server
boolean deleteServer(int id)
Server
boolean deleteServer(String id)
void rebootServer(int id, RebootType rebootType)
rebootType
- With a soft reboot, the operating system is signaled to restart, which allows for a
graceful shutdown of all processes. A hard reboot is the equivalent of power cycling
the server.void resizeServer(int id, int flavorId)
void confirmResizeServer(int id)
void revertResizeServer(int id)
Server createServer(String name, String imageRef, String flavorRef, CreateServerOptions... options)
options
- - used to specify extra files, metadata, or ip parameters during server creation.void rebuildServer(int id, RebuildServerOptions... options)
options
- - imageId is an optional argument. If it is not specified, the server is rebuilt
with the original imageId.void changeAdminPass(int id, String adminPass)
void renameServer(int id, String newName)
Set<Flavor> listFlavors(ListOptions... options)
withDetails()
Flavor getFlavor(int id)
Flavor
Set<Image> listImages(ListOptions... options)
withDetails()
Image getImage(int id)
Image
boolean deleteImage(int id)
Image
boolean deleteImage(String id)
Image createImageFromServer(String imageName, int serverId)
ResourceNotFoundException
- if the server is not foundImage
Addresses getAddresses(int serverId)
Set<String> listPublicAddresses(int serverId)
Set<String> listPrivateAddresses(int serverId)
void addFloatingIP(int serverId, String ip)
serverId
- ip
- Set<FloatingIP> listFloatingIPs()
FloatingIP getFloatingIP(int id)
id
- the floating IP idSet<SecurityGroup> listSecurityGroups()
SecurityGroup getSecurityGroup(int id)
id
- the ID of the security group to get details fromCopyright © 2009-2012 jclouds. All Rights Reserved.