Base API
- list_protocols
- list_balancers
- balancer_list_members
- get_balancer
- create_balancer
- destroy_balancer
- balancer_attach_member
- balancer_attach_compute_node
- balancer_detach_member
list_protocols
Method signature:
driver.list_protocols()
Description: Return a list of protocols which can be load balanced
and are supported by the provider.
list_balancers
Method signature:
driver.list_balancers()
Description: Return a list of the available LoadBalancer instances.
balancer_list_members
Method signature:
driver.balancer_list_members(balancer),
balancer.list_members()
Description: Return a list of the Member objects which are attached to this
load balancer.
get_balancer
Method signature:
driver.get_balancer(balancer_id)
Description: Return a LoadBalancer instance. This method is useful if you
know the load balancer id and want to obtain a reference to perform operations with
it.
create_balancer
Method signature:
driver.create_balancer(name, port, protocol, algorithm, members)
Description: Create a new load balancer and optionally attach initial
members to it.
destroy_balancer
Method signature:
driver.destroy_balancer(balancer),
balancer.destroy()
Description: Destroy a load balancer.
balancer_attach_member
Method signature:
driver.balancer_attach_member(balancer, member),
balancer.attach_member(member)
Description: Add a new member to the load balancer.
balancer_attach_compute_node
Method signature:
driver.balancer_attach_compute_node(balancer, node),
balancer.attach_compute_node(node)
Description: Add a new member to the load balancer. This method expected a
Node object from the compute API as an argument. It automatically reads Node's
first public IP address before adding a new member.
balancer_detach_member
Method signature:
driver.balancer_detach_member(balancer, member),
balancer.detach_member(member)
Description: Remove a member from the load balancer.