API methods for managing Load Balancer services.
Define a new service on the given load balancer. The service must be given a name. This is used to refer to the service later.
Parameters: |
|
---|---|
Returns: | A dictionary of the newly defined service as described in loadbalancer.service.info(). |
Raises : | Will raise:
|
Describe a load balancer service.
Parameters: |
|
---|---|
Returns: | A dictionary with the following keys:
|
Raises : | Will raise ApiErrorDoesNotExist if the load balancer or named service does not exist. |
List a load balancer’s services.
Parameters: | load_balancer (String) – The name of the load balancer. Service names are 1-64 characters A-Z, a-z, 0-9, -, . and _. Ensure this value has at most 64 characters. |
---|---|
Returns: | A list of dictionaries as described in loadbalancer.service.info(). |
Remove a service. The service must have no servers attached to it.
Parameters: |
|
---|---|
Returns: | The name of the removed service. |
Raises : | Will raise:
|
Update a service’s settings. Settings that are not provided will not be updated.
Parameters: |
|
---|---|
Returns: | A dictionary of the updated load balancer service as described in loadbalancer.service.info(). |
Raises : | Will raise:
|