Bases: Cloud.Cloud
Return the current rate limits for the account. Pass True to return absolute limits.
Arguments: absolute – Bool, set True for absolute limits. Defaults to False
Returns: JSON results as python dict
Return the current absolute limits for the account.
Arguments: absolute – Bool, set True for absolute limits. Defaults to False
Returns: JSON results as python dict
List all load balancers configured for the account (IDs, names and status only).
Arguments:
Returns: JSON results as python dict
Retrieve load balancer details.
Arguments: lbId – Load Balancer id
Returns: JSON results as python dict
Create a new load balancer with the configuration defined by the request.
Arguments: name – Name of LB(str) port – nodes – A list containing a dictionary for each with all of the following key/values:
address – IP address of node (Required) port – Port number for the service you are load balancing on the node. (Required) condition – ENABLED / DISABLED (Required) id – Id of node (Optional) status – ONLINE / OFFLINE (Optional)
protocol – HTTP / HTTPS / DNS / IMAPS / LDAP / MYSQL / POP3 / SMTP / TCP / UDP / SFTP etc. virtualIps – A list containing a dictionary with any of the following key/values:
type – PUBLIC / PRIVATE (Required) address – IP address of virtual IP (Optional) id – Id of existing LB virtual ip. (Optional) ipVersion – IPV4 / IPV6 (Optional)
Returns: status code
Updates the attributes of the specified load balancer.
Arguments: lbId – Load Balancer id
Returns: status code
Removes the specified load balancer and its associated configuration from the account.
Arguments: lbId – Load Balancer id
Returns: status code
List error page configured for the specified load balancer.
Arguments: lbId – Load Balancer id
Returns: JSON results as Python dict
Set custom error page for the specified load balancer.
Arguments: lbId – Load Balancer id contents – HTML markup(string)
Returns: response code
Delete custom error page for the specified load balancer.
Arguments: lbId – Load Balancer id
Returns: status code
Provides detailed stats output of specified LB.
Arguments: lbId – Load Balancer id
Returns: JSON results as python dict
List a specific node per a specified load balancer.
Arguments: lbId – Load Balancer id nId – Node id
Returns: JSON results as python dict
List nodes per a specified load balancer.
Arguments: lbId – Load Balancer id nId – Node id
Returns: JSON results as python dict
Add a node to a specified load balancer.
Arguments: lbId – load balancer id
Returns: status code
Modify a node per a specified load balancer.
Arguments: lbId – Load Balancer id nId – Node id
Returns: status code
Remove node(s) per a specified load balancer.
Arguments: lbId – Load Balancer id nodeList – Python list containing nodes to delete.
Returns: status code
List all virtual IPs associated with a load balancer.
Arguments: lbId – Load Balancer id
Returns: JSON results as python dict
List a specific virtual IP associated with a load balancer.
Arguments: lbId – Load Balancer id vpId – Load Balancer id
Returns: JSON results as python dict
List all allowed domains.
Arguments:
Returns: JSON results as python dict
Create a new virtual IP (v.6) with the configuration defined by the request.
Arguments: lbId – Load Balancer id typeIp – PUBLIC/SERVICENET ipVersion – IPV6
Returns: status code
Remove virtual ip(s) from the load balancer.
Arguments: lbId – Load Balancer id vipList – Python list containing virtual Ip’s to delete.
Returns: status code
List paginated billable load balancers.
Arguments: startTime – start date; format is YYYY-MM-DD endTime – end date; format is YYYY-MM-DD offset – (Optional) limit – (Optional)
Returns: JSON results as python dict
List types of usage statistics (transfer activity, average number of connections, virtual IP count) over a date range or last 24 hours (“current”).
Arguments: lbId – load balancer id (Optional) startTime – start date; format is YYYY-MM-DD (Optional, if not set then current=true with lbId) endTime – end date; format is YYYY-MM-DD (Optional, if not set then current=true with lbId) offset – (Optional) limit – (Optional)
Returns: JSON results as python dict
List all access list associated with a load balancer.
Arguments: lbId – Load Balancer id
Returns: JSON results as python dict
Create a new access list with the configuration defined by the request.
Arguments: lbId – Load Balancer id ipList – python list of dictionary key/value args:
address – ip address for item to add alType – ALLOW / DENY
Returns: status code
Update an access list with the configuration defined by the request.
Arguments: lbId – Load Balancer id ipList – python list of dictionaries with these required args:
address – ip address for item to add type – ALLOW / DENY
Returns: status code
Remove access list from the load balancer.
Arguments: lbId – Load Balancer id
Returns: status code
Remove network item(s) from a load balancer’s access list.
Arguments: lbId – Load Balancer id ipList – Python list containing network item id’s to delete.
Returns: status code
Retrieve health monitor configuration (if one exists).
Arguments: lbId – Load Balancer id
Returns: JSON results as python dict
Remove health monitor from the load balancer.
Arguments: lbId – Load Balancer id
Returns: status code
Update Health Monitor connections with the configuration defined by the request.
Arguments: lbId – Load Balancer id attempts – attempts before deactivation delay – timeout – type –
Returns: status code
Update Health Monitor HTTP/HTTPS with the configuration defined by the request.
Arguments: lbId – Load Balancer id attempts – attempts before deactivation bRegex – bodyRegex delay – path – sRegex – statusRegex timeout – type – hostHeader –
Returns: status code
Retrieve session persistence configuration.
Arguments: lbId – Load Balancer id
Returns: JSON results as python dict
Update session persistence with the configuration defined by the request.
Arguments: lbId – Load Balancer id type – persistence type - HTTP_COOKIE / SOURCE_IP
Returns: status code
Disable session persistence from the load balancer.
Arguments: lbId – Load Balancer id
Returns: status code
Retrieve connection logging configuration.
Arguments: lbId – Load Balancer id
Returns: JSON results as python dict
Enable/disable connection logging.
Arguments: lbId – Load Balancer id enabled – true / false
Returns: status code
Retrieve connection throttle configuration.
Arguments: lbId – Load Balancer id
Returns: JSON results as python dict
Update connection throttle configuration defined by the request.
Arguments: lbId – Load Balancer id attrDict – python dict options:
maxConnectionRate – (Optional) maxConnections – (Optional) minConnections – (Optional) rateInterval – (Optional)
Returns: status code
Remove connection throttle configuration from the load balancer.
Arguments: lbId – Load Balancer id (Required)
Returns: status code
Retrieve content caching configuration.
Arguments: lbId – Load Balancer id
Returns: JSON results as python dict
Enable/disable content caching.
Arguments: lbId – Load Balancer id enabled – true / false
Returns: status code
List supported load balancing protocols.
Arguments:
Returns: JSON results as python dict
List supported load balancing algorithms.
Arguments:
Returns: JSON results as python dict
List load balancers SSL termination configuration.
Arguments: lbId – Load Balancer id
Returns: JSON results as python dict
Update/configure SSL termination.
Arguments: lbId – Load Balancer id
Returns: status code
Remote SSL Termination.
Arguments: lbId – Load Balancer id
Returns: status code
Retrieve metadata associated with load balancer.
Arguments: lbId – Load Balancer id metaId – Meta id (Optional) nodeId – Node id (Optional)
Returns: JSON results as python dict
Create metadata per a load balancer.
Arguments: lbId – Load Balancer id nodeId – (Optional) metaList – python list of meta key/value dictionaries:
key – value –
Returns: status code