@Path(value="/hosts") public interface IHost extends IDefaultApi<Host>
| Modifier and Type | Method and Description |
|---|---|
Service[] |
getServices(String host) |
Boolean |
inSync(String host)
Checks whether the host and template are in sync or not
|
void |
removeService(String host,
String service)
Delete the given service from the host
|
javax.ws.rs.core.Response |
restartService(String host,
String service)
Restarts a given service on a host, if the host supports the service
|
void |
setService(String host,
String name,
Service service)
Add a new service to the host or modify an existing service
|
javax.ws.rs.core.Response |
startService(String host,
String service)
Starts a given service on a host, if the host supports the service
|
javax.ws.rs.core.Response |
stopService(String host,
String service)
Stops a given service on a host, if the host supports the service
|
delete, get, get, save@GET
@Path(value="/{host}/services")
@Produces(value="application/json;charset=UTF-8")
Service[] getServices(@PathParam(value="host")
String host)
host - the host name@PUT
@Path(value="/{host}/services/{service}")
@Consumes(value="application/json;charset=UTF-8")
@Produces(value="application/json;charset=UTF-8")
void setService(@PathParam(value="host")
String host,
@PathParam(value="service")
String name,
Service service)
host - the host namename - the service nameservice - the service@DELETE
@Path(value="/{host}/services/{service}")
@Consumes(value="application/json;charset=UTF-8")
@Produces(value="application/json;charset=UTF-8")
void removeService(@PathParam(value="host")
String host,
@PathParam(value="service")
String service)
host - the host nameservice - the service name@GET
@Path(value="/{host}/synced")
@Produces(value="application/json;charset=UTF-8")
Boolean inSync(@PathParam(value="host")
String host)
host - the host name@PUT
@Path(value="/{host}/services/{service}/start")
@Produces(value="application/json;charset=UTF-8")
javax.ws.rs.core.Response startService(@PathParam(value="host")
String host,
@PathParam(value="service")
String service)
host - the host nameservice - the service name@PUT
@Path(value="/{host}/services/{service}/stop")
@Produces(value="application/json;charset=UTF-8")
javax.ws.rs.core.Response stopService(@PathParam(value="host")
String host,
@PathParam(value="service")
String service)
host - the host nameservice - the service name@PUT
@Path(value="/{host}/services/{service}/restart")
@Produces(value="application/json;charset=UTF-8")
javax.ws.rs.core.Response restartService(@PathParam(value="host")
String host,
@PathParam(value="service")
String service)
host - the host nameservice - the service nameCopyright © 2013-2014 Cinovo AG. All Rights Reserved.