Interface LBaaSApi
@Beta
@Path("/lb")
@Consumes("application/json")
public interface LBaaSApi
Provides access to load-balancing operations for the OpenStack Networking (Neutron) v2 API.
LBaaS v1 is an extension to load-balance the traffic between instances and external networks.
-
Method Summary
Modifier and TypeMethodDescriptionassociateHealthMonitor
(String poolId, String healthMonitorId) Associate a HealthMonitor to a Pool.createHealthMonitor
(HealthMonitor.CreateHealthMonitor healthMonitor) Creates a new HealthMonitor.createMember
(Member.CreateMember member) Creates a new Member.createPool
(Pool.CreatePool pool) Creates a new Pool.createVIP
(VIP.CreateVIP vip) Creates a new VIP.boolean
Deletes the specified Health Monitor.boolean
deleteMember
(String id) Deletes the specified Member.boolean
deletePool
(String id) Deletes the specified Pool.boolean
Deletes the specified VIP.boolean
disassociateHealthMonitor
(String poolId, String healthMonitorId) Disassociate a HealthMonitor from a Pool.Returns the details for a specific HealthMonitor.Returns the details for a specific Member.Returns the details for a specific Pool.Returns the details for a specific VIP.Returns a list of HealthMonitors to which the tenant has access.listHealthMonitors
(PaginationOptions options) Returns a list of Members to which the tenant has access.listMembers
(PaginationOptions options) Returns a list of Pools to which the tenant has access.listPools
(PaginationOptions options) listVIPs()
Returns a list of VIPs to which the tenant has access.listVIPs
(PaginationOptions options) updateHealthMonitor
(String id, HealthMonitor.UpdateHealthMonitor healthMonitor) Update a HealthMonitor.updateMember
(String id, Member.UpdateMember member) Update a Member.updatePool
(String id, Pool.UpdatePool pool) Update a Pool.updateVIP
(String id, VIP.UpdateVIP vip) Update a VIP.
-
Method Details
-
listVIPs
Returns a list of VIPs to which the tenant has access. Default policy settings return only those VIPs that are owned by the tenant who submits the request, unless the request is submitted by an user with administrative rights.- Returns:
- the list of all VIP references configured for the tenant.
-
listVIPs
- Returns:
- the list of all VIP references configured for the tenant.
-
getVIP
Returns the details for a specific VIP.- Parameters:
id
- the id of the VIP to return.- Returns:
- VIP or null if not found.
-
createVIP
Creates a new VIP.- Parameters:
vip
- describes the VIP to be created.- Returns:
- a reference of the newly-created VIP.
-
updateVIP
@Named("vip:update") @PUT @Path("/vips/{id}") VIP updateVIP(@PathParam("id") String id, VIP.UpdateVIP vip) Update a VIP.- Parameters:
id
- the id of the VIP to update.vip
- the VIP's attributes to update.- Returns:
- a reference of the updated VIP.
-
deleteVIP
Deletes the specified VIP.- Parameters:
id
- the id of the VIP to delete.- Returns:
- true if delete successful, false if not.
-
listPools
Returns a list of Pools to which the tenant has access. Default policy settings return only those Pools that are owned by the tenant who submits the request, unless the request is submitted by an user with administrative rights.- Returns:
- the list of all Pool references configured for the tenant.
-
listPools
- Returns:
- the list of all Pool references configured for the tenant.
-
getPool
Returns the details for a specific Pool.- Parameters:
id
- the id of the Pool to return.- Returns:
- Pool or null if not found.
-
createPool
Creates a new Pool.- Parameters:
pool
- describes the Pool to be created.- Returns:
- a reference of the newly-created Pool.
-
updatePool
@Named("pool:update") @PUT @Path("/pools/{id}") Pool updatePool(@PathParam("id") String id, Pool.UpdatePool pool) Update a Pool.- Parameters:
id
- the id of the Pool to update.pool
- the Pool's attributes to update.- Returns:
- a reference of the updated Pool.
-
deletePool
Deletes the specified Pool.- Parameters:
id
- the id of the Pool to delete.- Returns:
- true if delete successful, false if not.
-
listMembers
Returns a list of Members to which the tenant has access. Default policy settings return only those Members that are owned by the tenant who submits the request, unless the request is submitted by an user with administrative rights.- Returns:
- the list of all Member references configured for the tenant.
-
listMembers
- Returns:
- the list of all Member references configured for the tenant.
-
getMember
@Named("member:get") @GET @Path("/members/{id}") @Nullable Member getMember(@PathParam("id") String id) Returns the details for a specific Member.- Parameters:
id
- the id of the Member to return.- Returns:
- Member or null if not found.
-
createMember
Creates a new Member.- Parameters:
member
- describes the Member to be created.- Returns:
- a reference of the newly-created Member.
-
updateMember
@Named("member:update") @PUT @Path("/members/{id}") Member updateMember(@PathParam("id") String id, Member.UpdateMember member) Update a Member.- Parameters:
id
- the id of the Member to update.member
- the Member's attributes to update.- Returns:
- a reference of the updated Member.
-
deleteMember
@Named("member:delete") @DELETE @Path("/members/{id}") boolean deleteMember(@PathParam("id") String id) Deletes the specified Member.- Parameters:
id
- the id of the Member to delete.- Returns:
- true if delete successful, false if not.
-
listHealthMonitors
@Named("health_monitor:list") @GET @Path("/health_monitors") PagedIterable<HealthMonitor> listHealthMonitors()Returns a list of HealthMonitors to which the tenant has access. Default policy settings return only those HealthMonitors that are owned by the tenant who submits the request, unless the request is submitted by an user with administrative rights.- Returns:
- the list of all HealthMonitor references configured for the tenant.
-
listHealthMonitors
@Named("health_monitor:list") @GET @Path("/health_monitors") HealthMonitors listHealthMonitors(PaginationOptions options) - Returns:
- the list of all HealthMonitor references configured for the tenant.
-
getHealthMonitor
@Named("health_monitor:get") @GET @Path("/health_monitors/{id}") @Nullable HealthMonitor getHealthMonitor(@PathParam("id") String id) Returns the details for a specific HealthMonitor.- Parameters:
id
- the id of the HealthMonitor to return.- Returns:
- Health Monitor or null if not found.
-
createHealthMonitor
@Named("health_monitor:create") @POST @Path("/health_monitors") HealthMonitor createHealthMonitor(HealthMonitor.CreateHealthMonitor healthMonitor) Creates a new HealthMonitor.- Parameters:
healthMonitor
- describes the HealthMonitor to be created.- Returns:
- a reference of the newly-created HealthMonitor.
-
updateHealthMonitor
@Named("health_monitor:update") @PUT @Path("/health_monitors/{id}") HealthMonitor updateHealthMonitor(@PathParam("id") String id, HealthMonitor.UpdateHealthMonitor healthMonitor) Update a HealthMonitor.- Parameters:
id
- the id of the HealthMonitor to update.healthMonitor
- the HealthMonitor's attributes to update.- Returns:
- a reference of the updated HealthMonitor.
-
deleteHealthMonitor
@Named("health_monitor:delete") @DELETE @Path("/health_monitors/{id}") boolean deleteHealthMonitor(@PathParam("id") String id) Deletes the specified Health Monitor.- Parameters:
id
- the id of the Health Monitor to delete.- Returns:
- true if delete successful, false if not.
-
associateHealthMonitor
@Named("pool:associate_health_monitor") @POST @Path("/pools/{pool-id}/health_monitors") @Produces("application/json") HealthMonitor associateHealthMonitor(@PathParam("pool-id") String poolId, String healthMonitorId) Associate a HealthMonitor to a Pool.- Parameters:
poolId
- the id of the Pool to associate.healthMonitorId
- the id of the HealthMonitor to associate.- Returns:
- the newly associated HealthMonitor.
-
disassociateHealthMonitor
@Named("pool:disassociate_health_monitor") @DELETE @Path("/pools/{pool-id}/health_monitors/{health-monitor-id}") boolean disassociateHealthMonitor(@PathParam("pool-id") String poolId, @PathParam("health-monitor-id") String healthMonitorId) Disassociate a HealthMonitor from a Pool.- Parameters:
poolId
- the id of the Pool to disassociate.healthMonitorId
- the id of the HealthMonitor to disassociate.- Returns:
- true if disassociate successful, false if not.
-