API methods for cluster real services.
Disable the Cluster Server in the Cluster Service.
Parameters: |
|
---|---|
Returns: | If the server is enabled, a dictionary as described in job.status(). |
Raises : | May raise ApiErrorDoesNotExist if the Cluster, Cluster Service or server does not exist. |
Unset the Real Service as fallback.
Parameters: |
|
---|---|
Returns: | If in fallback, a dictionary as described in job.status(). |
Raises : | ApiErrorDoesNotExist if the Cluster, Cluster Service or Cluster Server does not exist (in the cluster/account). |
When in fallback mode, the real service is used when all other real services are down. Only one Real Service can be in fallback mode.
Enable the Cluster Server in the Cluster Real Service.
Parameters: |
|
---|---|
Returns: | If the server is disabled, a dictionary as described in job.status(). |
Raises : | May raise ApiErrorDoesNotExist if the Cluster, Cluster Service or server does not exist. |
Set the Real Service as fallback.
Parameters: |
|
---|---|
Returns: | If not in fallback, a dictionary as described in job.status(). |
Raises : | ApiErrorDoesNotExist if the Cluster, Cluster Service or Cluster Server does not exist (in the cluster/account). |
Raises : | ApiErrorPreconditionFailed if a server in the Cluster Service is already set as fallback. |
Raises : | ApiErrorPreconditionFailed if the Real Service is not enabled. |
When in fallback mode, the real service is used when all other real services are down. Only one Real Service can be in fallback mode.
Information about a Cluster Real Service
Parameters: |
|
---|---|
Returns: | a dictionary with the following keys:
|
Raises : | May raise ApiErrorDoesNotExist if the cluster, Cluster Service, Cluster Real Service or Cluster Server does exist. |
List the Cluster Real Services for a given Cluster Service.
FIXME: returns
Parameters: |
|
---|
Change the weight of a server in the service.
Parameters: |
|
---|---|
Returns: | If new weight is different to existing value, a dictionary as described in job.status(). |
Raises : | ApiErrorDoesNotExist if the Cluster, Cluster Service or Cluster Server does not exist (in the cluster/account). |
Statistical information about a Cluster Real Service.
Parameters: |
|
---|---|
Returns: | a dictionary with the following keys:
|
Raises : | May raise ApiErrorDoesNotExist if the cluster, Cluster Service, Cluster Real Service or Cluster Server does exist. |
N.B. The data is not live and is thus always at least a few minutes out-of-date. This method can be polled frequently without concern for performance.