public interface VirtualIPApi
Modifier and Type | Method and Description |
---|---|
VirtualIPWithId |
create(VirtualIP virtualIP)
Create a new virtual IP.
|
boolean |
delete(int id)
Delete a virtual IP.
|
boolean |
delete(Iterable<Integer> ids)
Batch delete virtual IPs given the specified ids.
|
Iterable<VirtualIPWithId> |
list()
List the virtual IPs.
|
@Named(value="virtualip:create") @POST @Consumes(value="application/json") @Path(value="/virtualips") VirtualIPWithId create(VirtualIP virtualIP)
@Named(value="virtualip:list") @GET @Consumes(value="application/json") @Path(value="/virtualips") Iterable<VirtualIPWithId> list()
@Named(value="virtualip:delete") @DELETE @Path(value="/virtualips/{id}") @Consumes(value="*/*") boolean delete(@PathParam(value="id") int id)
delete(Iterable)
@Named(value="virtualip:delete") @DELETE @Path(value="/virtualips") @Consumes(value="*/*") boolean delete(@QueryParam(value="id") Iterable<Integer> ids)
Copyright © 2009-2018 The Apache Software Foundation. All Rights Reserved.