public interface CloudServersClient
ExecutionException
as documented in Future.get()
.CloudServersAsyncClient
,
Modifier and Type | Method and Description |
---|---|
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,
int imageId,
int flavorId,
CreateServerOptions... options)
This operation asynchronously provisions a new server.
|
SharedIpGroup |
createSharedIpGroup(String name,
CreateSharedIpGroupOptions... options)
This operation creates a new shared IP group.
|
boolean |
deleteBackupSchedule(int serverId)
Delete backup schedule for the specified server.
|
boolean |
deleteImage(int id)
This operation deletes an image from the system.
|
boolean |
deleteServer(int id)
This operation deletes a cloud server instance from the system.
|
boolean |
deleteSharedIpGroup(int id)
This operation deletes the specified shared IP group.
|
Addresses |
getAddresses(int serverId)
List all server addresses
returns empty set if the server doesn't exist
|
BackupSchedule |
getBackupSchedule(int serverId)
List the backup schedule for the specified server
|
Flavor |
getFlavor(int id)
This operation returns details of the specified flavor.
|
Image |
getImage(int id)
This operation returns details of the specified image.
|
Limits |
getLimits()
All accounts, by default, have a preconfigured set of thresholds (or limits) to manage
capacity and prevent abuse of the system.
|
Server |
getServer(int id)
This operation returns details of the specified server.
|
SharedIpGroup |
getSharedIpGroup(int id)
This operation returns details of the specified shared IP group.
|
Set<Flavor> |
listFlavors(ListOptions... options)
List available flavors (IDs and names only)
in order to retrieve all details, pass the option
withDetails() |
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<Server> |
listServers(ListOptions... options)
List all servers (IDs and names only)
This operation provides a list of servers associated with your identity.
|
Set<SharedIpGroup> |
listSharedIpGroups(ListOptions... options)
List shared IP groups (IDs and names only)
in order to retrieve all details, pass the option
withDetails() |
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 |
replaceBackupSchedule(int id,
BackupSchedule backupSchedule)
Enable/update the backup schedule for the specified 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.
|
void |
shareIp(String addressToShare,
int serverToTosignBindressTo,
int sharedIpGroup,
boolean configureServer)
/** This operation allows you share an IP address to the specified server
This operation shares an IP from an existing server in the specified shared IP group to
another specified server in the same group.
|
void |
unshareIp(String addressToShare,
int serverToTosignBindressTo)
This operation removes a shared IP address from the specified server.
|
Limits getLimits()
Set<Server> listServers(ListOptions... options)
withDetails()
Server getServer(int id)
Server
boolean deleteServer(int id)
Server
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, int imageId, int flavorId, 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 shareIp(String addressToShare, int serverToTosignBindressTo, int sharedIpGroup, boolean configureServer)
configureServer
-
if set to true, the server is configured with the new address, though the address is
not enabled. Note that configuring the server does require a reboot.
If set to false, does not bind the IP to the server itself. A heartbeat facility
(e.g. keepalived) can then be used within the servers to perform health checks and
manage IP failover.void unshareIp(String addressToShare, int serverToTosignBindressTo)
addressToShare
- serverToTosignBindressTo
- 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
Image createImageFromServer(String imageName, int serverId)
ResourceNotFoundException
- if the server is not foundImage
Set<SharedIpGroup> listSharedIpGroups(ListOptions... options)
withDetails()
SharedIpGroup getSharedIpGroup(int id)
SharedIpGroup
SharedIpGroup createSharedIpGroup(String name, CreateSharedIpGroupOptions... options)
CreateSharedIpGroupOptions
to specify an server.boolean deleteSharedIpGroup(int id)
SharedIpGroup
BackupSchedule getBackupSchedule(int serverId)
ResourceNotFoundException
- , if the server doesn't existboolean deleteBackupSchedule(int serverId)
void replaceBackupSchedule(int id, BackupSchedule backupSchedule)
Addresses getAddresses(int serverId)
Set<String> listPublicAddresses(int serverId)
Copyright © 2009-2012 jclouds. All Rights Reserved.