appliance networking dns servers: test
Test if dns servers are reachable.
Request:
HTTP request
POST https://{server}/rest/appliance/networking/dns/servers/test
Request Body Structure:
{
"servers": [
"string",
"string"
]
}
"servers": [
"string",
"string"
]
}
<?xml version="1.0" ?>
<ns0:Test-Input xmlns:ns0="http://vmware.com/appliance/networking/dns/servers" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<servers-array>
<array-item>string</array-item>
<array-item>string</array-item>
</servers-array>
</ns0:Test-Input>
<ns0:Test-Input xmlns:ns0="http://vmware.com/appliance/networking/dns/servers" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<servers-array>
<array-item>string</array-item>
<array-item>string</array-item>
</servers-array>
</ns0:Test-Input>
Request Body Parameters:
Name | Type | Description |
---|---|---|
bold = required | ||
servers | string[] | DNS servers. |
Response:
HTTP Status Code: 200
Representations:
{
"value": {
"messages": [
{
"message": "string",
"result": "failure"
},
{
"message": "string",
"result": "failure"
}
],
"status": "orange"
}
}
"value": {
"messages": [
{
"message": "string",
"result": "failure"
},
{
"message": "string",
"result": "failure"
}
],
"status": "orange"
}
}
<?xml version="1.0" ?>
<ns0:Test-Result xmlns:ns0="http://vmware.com/appliance/networking/dns/servers" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<value>
<status>orange</status>
<messages-array>
<array-item>
<message>string</message>
<result>failure</result>
</array-item>
<array-item>
<message>string</message>
<result>failure</result>
</array-item>
</messages-array>
</value>
</ns0:Test-Result>
<ns0:Test-Result xmlns:ns0="http://vmware.com/appliance/networking/dns/servers" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<value>
<status>orange</status>
<messages-array>
<array-item>
<message>string</message>
<result>failure</result>
</array-item>
<array-item>
<message>string</message>
<result>failure</result>
</array-item>
</messages-array>
</value>
</ns0:Test-Result>
Response Type:
Name | Type | Description |
---|---|---|
bold = required | ||
value | test_status_info | DNS reacable status. |
value.status | string | Overall status of tests run. Health indicator Value is one of: orange: In case data has more than one test, this indicates not all tests were successful green: All tests were successful for given data red: All tests failed for given data |
value.messages | message[] | messages |
value.messages[].message | string | message |
value.messages[].result | string | result of the test Individual test result Value is one of: failure: message indicates the test failed. success: message indicates that the test was successful. |
Errors:
HTTP Status Code | Type | Description |
---|---|---|
500 | error | Generic error |