Part of libcloud.loadbalancer.base View Source View In Hierarchy
Known subclasses: libcloud.loadbalancer.drivers.cloudstack.CloudStackLBDriver, libcloud.loadbalancer.drivers.gogrid.GoGridLBDriver, libcloud.loadbalancer.drivers.rackspace.RackspaceLBDriver
This class is always subclassed by a specific driver.
Method | __init__ | |
Method | list_protocols | Return a list of supported protocols. |
Method | list_balancers | List all loadbalancers |
Method | create_balancer | Create a new load balancer instance |
Method | destroy_balancer | Destroy a load balancer |
Method | get_balancer | Return a LoadBalancer object. |
Method | balancer_attach_compute_node | Attach a compute node as a member to the load balancer. |
Method | balancer_attach_member | Attach a member to balancer |
Method | balancer_detach_member | Detach member from balancer |
Method | balancer_list_members | Return list of members attached to balancer |
Method | _value_to_algorithm | Return LBAlgorithm based on the value. |
Method | _algorithm_to_value | Return value based in the algorithm (LBAlgorithm ). |
Inherited from BaseDriver:
Method | _ex_connection_class_kwargs | Return extra connection keyword arguments which are passed to the Connection class constructor. |
Parameters | key | API key or username to used (type: str) |
secret | Secret password to be used (type: str) | |
secure | Weither to use HTTPS or HTTP. Note: Some providers only support HTTPS, and it is on by default. (type: bool) | |
host | Override hostname used for connections. (type: str) | |
port | Override port used for connections. (type: int) | |
api_version | Optional API version. Only used by drivers which support multiple API versions. (type: str) |
Returns | list of LoadBalancer
objects |
Parameters | name | Name of the new load balancer (required) (type: str ) |
members | list ofMember s to
attach to balancer | |
protocol | Loadbalancer protocol, defaults to http. | |
port | Port the load balancer should listen on, defaults to 80 (type: str ) | |
algorithm | Load balancing algorithm, defaults to LBAlgorithm.ROUND_ROBIN (type: LBAlgorithm ) |
Returns | bool True if the destroy was successful, otherwise False |
LoadBalancer
object.Parameters | balancer_id | id of a load balancer you want to fetch (type: str ) |
Returns | LoadBalancer |
Parameters | node | Member to join to the balancer |
Parameters | member | Member to join to the balancer (type: Member @return {Member} Member after joining the balancer.) |
Returns | bool True if member detach was successful, otherwise False |
Returns | list of Member s |
LBAlgorithm
).