API methods for adding and removing servers to/from Load Balancers.
Add the given server to the service. If the server is a miniserver, this method may reboot it in order to reconfigure its network. For further information, please see the VLAN documentation.
Parameters: |
|
---|---|
Returns: | A dictionary as described in loadbalancer.server.info(). |
Raises : | Will raise:
|
Preconditions : | The following preconditions must be satisfied:
|
Return information about the specified server, as attached to the given service.
Parameters: |
|
---|---|
Returns: | a dictionary with the following keys:
|
Raises : | Will raise ApiErrorDoesNotExist if the load balancer, service or server does not exist. Will raise ApiErrorPreconditionFailed if the server is not attached to the given service. |
Remove a server from the given service. The server must not be in the middle of rebooting. If the server is a miniserver, this method may reboot it in order to reconfigure its network. For further information, please see the VLAN documentation. If you just want to disable a server temporarily, use loadbalancer.server.update() to set enabled to false.
Parameters: |
|
---|---|
Returns: | The name of the server that was removed. |
Raises : | Will raise ApiErrorDoesNotExist if the named load balancer, service or server does not exist. Will raise ApiErrorPreconditionFailed if the server is not attached to the specified service, or if the server is being rebooted. |
Update the settings of a server as attached to the given service. Settings that are not provided will not be updated.
Parameters: |
|
---|---|
Returns: | A dictionary as described in loadbalancer.server.info(). |
Raises : | Will raise:
|