public interface LoadBalancerApi
Modifier and Type | Method and Description |
---|---|
LoadBalancer |
create(CreateLoadBalancer createLB)
Create a new load balancer with the configuration defined by the request.
|
Metadata |
createMetadata(int id,
Map<String,String> metadata)
When a metadata item is added, it is assigned a unique identifier that can be used for mutating operations such
as changing the value attribute or removing it.
|
void |
delete(int id)
Delete a load balancer.
|
boolean |
deleteMetadata(int id,
Iterable<Integer> metadataIds)
Batch delete metadata given the specified ids.
|
boolean |
deleteMetadatum(int id,
int metadatumId)
Delete metadatum.
|
LoadBalancer |
get(int id)
Get a load balancer.
|
Metadata |
getMetadata(int id)
List a load balancer's metadata.
|
PagedIterable<LoadBalancer> |
list()
List the load balancers.
|
IterableWithMarker<LoadBalancer> |
list(PaginationOptions options)
List the load balancers with full control of pagination.
|
void |
update(int id,
UpdateLoadBalancer updateLB)
Update the properties of a load balancer.
|
boolean |
updateMetadatum(int id,
int metadatumId,
String value)
Update metadatum.
|
@Named(value="lb:create") @POST @Consumes(value="application/json") @Path(value="/loadbalancers") LoadBalancer create(CreateLoadBalancer createLB)
get(int)
.@Named(value="lb:update") @PUT @Consumes(value="application/json") @Path(value="/loadbalancers/{id}") void update(@PathParam(value="id") int id, UpdateLoadBalancer updateLB)
@Named(value="lb:list") @GET @Consumes(value="application/json") @Path(value="/loadbalancers") PagedIterable<LoadBalancer> list()
@Named(value="lb:list") @GET @Consumes(value="application/json") @Path(value="/loadbalancers") IterableWithMarker<LoadBalancer> list(PaginationOptions options)
@Named(value="lb:get") @GET @Consumes(value="application/json") @Path(value="/loadbalancers/{id}") LoadBalancer get(@PathParam(value="id") int id)
@Named(value="lb:delete") @DELETE @Path(value="/loadbalancers/{id}") @Consumes(value="*/*") void delete(@PathParam(value="id") int id)
@Named(value="lb:createmetadata") @POST @Consumes(value="application/json") @Path(value="/loadbalancers/{id}/metadata") Metadata createMetadata(@PathParam(value="id") int id, Map<String,String> metadata)
@Named(value="lb:getmetadata") @GET @Consumes(value="application/json") @Path(value="/loadbalancers/{id}/metadata") Metadata getMetadata(@PathParam(value="id") int id)
@Named(value="lb:updatemetadatum") @PUT @Produces(value="application/json") @Consumes(value="*/*") @Path(value="/loadbalancers/{id}/metadata/{metadatumId}") boolean updateMetadatum(@PathParam(value="id") int id, @PathParam(value="metadatumId") int metadatumId, String value)
@Named(value="lb:deletemetadatum") @DELETE @Consumes(value="*/*") @Path(value="/loadbalancers/{id}/metadata/{metadatumId}") boolean deleteMetadatum(@PathParam(value="id") int id, @PathParam(value="metadatumId") int metadatumId)
deleteMetadata(int, Iterable)
@Named(value="lb:deletemetadata") @DELETE @Consumes(value="*/*") @Path(value="/loadbalancers/{id}/metadata") boolean deleteMetadata(@PathParam(value="id") int id, @QueryParam(value="id") Iterable<Integer> metadataIds)
Copyright © 2009-2018 The Apache Software Foundation. All Rights Reserved.