@Beta
@Consumes(value="application/json")
@Path(value="/os-aggregates")
public interface HostAggregateApi
| Modifier and Type | Method and Description |
|---|---|
HostAggregate |
addHost(String id,
String host)
Adds a host to an aggregate
|
HostAggregate |
createInAvailabilityZone(String name,
String availabilityZone)
Creates an aggregate, given its name and availability zone.
|
Boolean |
delete(String id)
Removes an aggregate.
|
HostAggregate |
get(String id)
Retrieves the details of an aggregate, hosts and metadata included.
|
com.google.common.collect.FluentIterable<HostAggregate> |
list()
Lists all host aggregates.
|
HostAggregate |
removeHost(String id,
String host)
Removes a host from an aggregate
|
HostAggregate |
setMetadata(String id,
Map<String,String> metadata)
Adds metadata to an aggregate
|
HostAggregate |
updateAvailabilityZone(String id,
String availabilityZone)
Updates the availability zone for an aggregate.
|
HostAggregate |
updateName(String id,
String name)
Updates the name of an aggregate.
|
@Named(value="hostAggregate:list") @GET com.google.common.collect.FluentIterable<HostAggregate> list()
@Named(value="hostAggregate:get")
@GET
@Path(value="/{id}")
@Nullable
HostAggregate get(@PathParam(value="id")
String id)
@Named(value="hostAggregate:create") @POST @Produces(value="application/json") HostAggregate createInAvailabilityZone(String name, String availabilityZone)
@Named(value="hostAggregate:update")
@POST
@Path(value="/{id}")
HostAggregate updateName(@PathParam(value="id")
String id,
String name)
@Named(value="hostAggregate:update")
@POST
@Path(value="/{id}")
HostAggregate updateAvailabilityZone(@PathParam(value="id")
String id,
String availabilityZone)
@Named(value="hostAggregate:delete")
@DELETE
@Path(value="/{id}")
Boolean delete(@PathParam(value="id")
String id)
@Named(value="hostAggregate:addHost")
@POST
@Path(value="/{id}/action")
@Produces(value="application/json")
HostAggregate addHost(@PathParam(value="id")
String id,
String host)
@Named(value="hostAggregate:removeHost")
@POST
@Path(value="/{id}/action")
@Produces(value="application/json")
HostAggregate removeHost(@PathParam(value="id")
String id,
String host)
@Named(value="hostAggregate:setMetadata")
@POST
@Path(value="/{id}/action")
@Produces(value="application/json")
HostAggregate setMetadata(@PathParam(value="id")
String id,
Map<String,String> metadata)
Copyright © 2009-2018 The Apache Software Foundation. All Rights Reserved.