@Beta
@Consumes(value="application/json")
@Path(value="/os-hosts")
public interface HostAdministrationApi
Modifier and Type | Method and Description |
---|---|
boolean |
disable(String hostId)
Prevent the specified host from accepting new instances.
|
boolean |
enable(String hostId)
Allow the specified host to accept new instances.
|
com.google.common.collect.FluentIterable<Host> |
list()
Returns the list of hosts
|
com.google.common.collect.FluentIterable<HostResourceUsage> |
listResourceUsage(String hostId)
Retrieves the physical/usage resource on a specific host
|
boolean |
reboot(String hostId)
Reboot a host.
|
boolean |
shutdown(String hostId)
Shutdown a host.
|
boolean |
startMaintenance(String hostId)
Start host maintenance window.
|
boolean |
startup(String hostId)
Startup a host.
|
boolean |
stopMaintenance(String hostId)
Stop host maintenance window.
|
@Named(value="hostAdmin:list") @GET com.google.common.collect.FluentIterable<Host> list()
@Named(value="hostAdmin:listResourceUsage") @GET @Path(value="/{id}") com.google.common.collect.FluentIterable<HostResourceUsage> listResourceUsage(@PathParam(value="id") String hostId)
@Named(value="hostAdmin:enable") @PUT @Path(value="/{id}") @Produces(value="application/json") boolean enable(@PathParam(value="id") String hostId)
@Named(value="hostAdmin:disable") @PUT @Path(value="/{id}") @Produces(value="application/json") boolean disable(@PathParam(value="id") String hostId)
@Named(value="hostAdmin:startMaintenance") @PUT @Path(value="/{id}") @Produces(value="application/json") boolean startMaintenance(@PathParam(value="id") String hostId)
@Named(value="hostAdmin:stopMaintenance") @PUT @Path(value="/{id}") @Produces(value="application/json") boolean stopMaintenance(@PathParam(value="id") String hostId)
@Named(value="hostAdmin:startup") @GET @Path(value="/{id}/startup") boolean startup(@PathParam(value="id") String hostId)
@Named(value="hostAdmin:shutdown") @GET @Path(value="/{id}/shutdown") boolean shutdown(@PathParam(value="id") String hostId)
@Named(value="hostAdmin:reboot") @GET @Path(value="/{id}/reboot") boolean reboot(@PathParam(value="id") String hostId)
Copyright © 2009-2018 The Apache Software Foundation. All Rights Reserved.