New in this release
Create List Of Accepted Server Names
POST /acceptedservernames/
Creates or replaces the list of accepted management server names.
Required Roles
Request Payload
<accepted_server_names>
<server_name></server_name>
</accepted_server_names>
{
"server_name": [
""
]
}
All parameters are required unless otherwise stated.
Field |
Description |
Type |
Notes |
accepted_server_names |
|
|
|
server_name |
A list of accepted management server names |
String |
0-* Elements
|
Response Body
Newly created 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
POST https://192.168.0.0:4443/acceptedservernames/ HTTP/1.1
Content-Type: application/xml
X-SDS-AUTH-TOKEN: <AUTH_TOKEN>
<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>
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
POST https://192.168.0.0:4443/acceptedservernames/ HTTP/1.1
Content-Type: application/json
X-SDS-AUTH-TOKEN: <AUTH_TOKEN>
{
"server_name": ["192.168.0.10", "192.168.0.11", "192.168.0.12", "192.168.0.13"]
}
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
cat body.txt
<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>
curl -H $token -H "Content-Type: application/xml" -X POST --data @body.txt 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>