@Beta
@Consumes(value="application/json")
@Path(value="/servers/{id}/action")
public interface ServerAdminApi
Modifier and Type | Method and Description |
---|---|
String |
createBackup(String id,
String imageName,
BackupType backupType,
int rotation,
CreateBackupOfServerOptions... options)
Create backup of a server.
|
void |
injectNetworkInfo(String id)
Inject network info into a server.
|
void |
liveMigrate(String id,
String host,
boolean blockMigration,
boolean diskOverCommit)
Live migrate a server.
|
void |
lock(String id)
Lock a server.
|
void |
migrate(String id)
Migrate a server.
|
void |
pause(String id)
Pause a server.
|
void |
resetNetwork(String id)
Reset network of a server.
|
void |
resume(String id)
Resume a server.
|
void |
suspend(String id)
Suspend a server.
|
void |
unlock(String id)
Unlock a server.
|
void |
unpause(String id)
Unpause a server.
|
@Named(value="serverAdmin:suspend") @POST @Produces(value="application/json") void suspend(@PathParam(value="id") String id)
id
- id of the server@Named(value="serverAdmin:resume") @POST @Produces(value="application/json") void resume(@PathParam(value="id") String id)
id
- id of the server@Named(value="serverAdmin:migrate") @POST @Produces(value="application/json") void migrate(@PathParam(value="id") String id)
id
- id of the server@Named(value="serverAdmin:lock") @POST @Produces(value="application/json") void lock(@PathParam(value="id") String id)
id
- id of the server@Named(value="serverAdmin:unlock") @POST @Produces(value="application/json") void unlock(@PathParam(value="id") String id)
id
- id of the server@Named(value="serverAdmin:resetNetwork") @POST @Produces(value="application/json") void resetNetwork(@PathParam(value="id") String id)
id
- id of the server@Named(value="serverAdmin:createBackup") @POST @Produces(value="application/json") String createBackup(@PathParam(value="id") String id, String imageName, BackupType backupType, int rotation, CreateBackupOfServerOptions... options)
id
- id of the serverimageName
- the name of the image to createbackupType
- the type of backuprotation
- the number of images to retain (0 to simply overwrite)options
- optional rotation and/or metadata parameters@Named(value="serverAdmin:pause") @POST @Produces(value="application/json") void pause(@PathParam(value="id") String id)
id
- id of the server@Named(value="serverAdmin:unpause") @POST @Produces(value="application/json") void unpause(@PathParam(value="id") String id)
id
- id of the server@Named(value="serverAdmin:liveMigrate") @POST @Produces(value="application/json") void liveMigrate(@PathParam(value="id") String id, String host, boolean blockMigration, boolean diskOverCommit)
id
- id of the server@Named(value="serverAdmin:injectNetwork") @POST @Produces(value="application/json") void injectNetworkInfo(@PathParam(value="id") String id)
id
- id of the serverCopyright © 2009-2018 The Apache Software Foundation. All Rights Reserved.