Get local cluster information
Description
URL | scheme://domain:port/platform/ws/clusters/local |
Description |
The logged on user must be have the cluster administrator role to use this API. Gets local cluster information such as cluster name, management host name and status, LSF version and primary LSF administrator. |
HTTP Method | GET |
Parameters | None |
Request
Method | GET | |
Request-URI | /platform/ws/clusters/local |
|
Request-Header | Name | Value |
Accept | application/xml, or application/json | |
Message-Body | empty |
Response
Response Code |
|
|
Response-Header | Name | Value |
Content-Type | application/xml or application/json | |
Message Body | Success Message | If successful, returns cluster information. For additional information, refer to the schema file ./schemas/cluster/cluster.xsd.
|
Failure Message | If not successful, returns an error message. For additional information, refer to the schema file ./schemas/error/error.xsd.
|
Example: View information about your cluster
# Request
GET /platform/ws/clusters/local HTTP/1.1
Host: www.example.org
Authorization: Basic d2VsaXU6bGV0bWVpbg==
# Response
200 Successful
Content-Type: application/xml;
<cluster>
<atom:link rel="self" href="http://www.example.org/platfom/ws/clusters/local"/>
<clusterName>cluster_test</clusterName>
<status>ok</status>
<masterHost>lsflinux3</masterHost>
<admins>user1 user20</admins>
<lsfVersion>9.1.0.0</lsfVersion>
</cluster>