New in this release
Get List Of Accepted Server Names
GET /acceptedservernames/
Gets the list of accepted management server names.
Required Roles
Response Body
The list of accepted management server names
Field |
Description |
Type |
Notes |
accepted_server_names |
|
|
|
server_name |
A list of accepted management server names |
String |
0-* Elements
|
Examples
Request
GET https://192.168.0.0:4443/acceptedservernames/ HTTP/1.1
X-SDS-AUTH-TOKEN: <AUTH_TOKEN>
Response
HTTP/1.1 200 OK
Content-Type: application/xml
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<accepted_server_names>
<server_name>192.168.0.10</server_name>
<server_name>192.168.0.11</server_name>
<server_name>192.168.0.12</server_name>
<server_name>192.168.0.13</server_name>
</accepted_server_names>
Request
GET https://192.168.0.0:4443/acceptedservernames.json HTTP/1.1
X-SDS-AUTH-TOKEN: <AUTH_TOKEN>
Response
HTTP/1.1 200 OK
Content-Type: application/json
{
"server_name": [
"192.168.0.10",
"192.168.0.11",
"192.168.0.12",
"192.168.0.13"
]
}
Request
curl -H $token -H "Content-Type: application/xml" -X GET https://$nodeIp:4443/acceptedservernames/
Response
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<accepted_server_names>
<server_name>192.168.0.10</server_name>
<server_name>192.168.0.11</server_name>
<server_name>192.168.0.12</server_name>
<server_name>192.168.0.13</server_name>
</accepted_server_names>