Get Information on SDM Servers
/rest/{versionId}/admin/serverInfo
Request
Response
- application/xml
- application/json
200 Response
object
-
downTime(optional):
string
-
failureHeartBeatCount(optional):
integer(int64)
-
heartBeatCount(optional):
integer(int64)
-
inactivityHeartBeatCount(optional):
integer(int64)
-
ipAddress(optional):
string
-
lastHeartBeatTime(optional):
string
-
maxFailureHeartBeatCount(optional):
integer(int64)
-
missedHeartBeatCount(optional):
integer(int64)
-
name(optional):
string
-
resetCount(optional):
integer(int64)
-
status(optional):
string
-
upTime(optional):
string
400 Response
404 Response
Examples
Example of Accessing the API with cURL
The following example shows how to get information on SDM servers by submitting a GET request on the REST resource using cURL. For more information about cURL, see Use cURL.
curl -X GET -b sessionid.txt \
--header "Accept: application/xml" \
"https://example.com:8443/rest/v1.3/admin/serverInfo"
Example of Accessing the API with Python
The following example shows how to get information on SDM servers by submitting a GET request on the REST resource using Python. This example assumes the cookie
variable contains a valid authentication cookie. For an example of authenticating with Python, see Authenticate.
import requests
url = "https://example.com:8443/rest/v1.3/admin/serverInfo"
headers = { "Accept":"application/xml", "Cookie":cookie }
resp = requests.get(url, headers=headers)
Example of the Response Headers
The following shows an example of the response headers.
HTTP/1.1 200 OK
Date: Wed, 08 May 2019 12:49:57 GMT
Server: Apache
X-Frame-Options: SAMEORIGIN
vary: Origin,Accept-Encoding
Content-Length: 724
Content-Type: application/xml
Example of the Response Body
The following example shows the contents of the response body in XML format.
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<serverInfo>
<clusterMembers>
<clusterMember>
<downTime>NA</downTime>
<failureHeartBeatCount>0</failureHeartBeatCount>
<heartBeatCount>274809</heartBeatCount>
<inactivityHeartBeatCount>0</inactivityHeartBeatCount>
<ipAddress>10.0.0.4</ipAddress>
<lastHeartBeatTime>2019-05-08 08:49:50</lastHeartBeatTime>
<maxFailureHeartBeatCount>1</maxFailureHeartBeatCount>
<missedHeartBeatCount>0</missedHeartBeatCount>
<name>10.0.0.55</name>
<resetCount>0</resetCount>
<status>ACTIVE</status>
<upTime>15:21:41</upTime>
</clusterMember>
</clusterMembers>
<globalId>SDM</globalId>
<masterNodeIp>10.0.0.55</masterNodeIp>
<productName>OCSDM</productName>
<version>NNC82</version>
</serverInfo>