REST API  14
REST API for Luna Network HSMs
GET /api/lunasa/network/devices/{deviceid}/dns/nameServers

GET /api/lunasa/network/devices/{deviceid}/dns/nameServers

Returns a list of name servers currently registered on the device.

Parameters

deviceid

Specifies the id of the device.

Use: Required

JSON Schema:

    Object
    type:string

Responses

200

A list of all name servers on the device.

JSON Schema: Name Servers

400

Unexpected error

404

APPLIANCE_INTERFACE_DOES_NOT_EXIST

Specified interface does not exist.

Example Request

   GET
   https://1.2.3.4:8443/api/lunasa/network/devices/eth0/dns/nameServers

Example Response

{
    "nameServers": [
        {
            "id": "1.2.3.10",
            "url": "/api/lunasa/network/devices/eth0/dns/nameServers/1.2.3.10"
        },
        {
            "id": "1.2.3.14",
            "url": "/api/lunasa/network/devices/eth0/dns/nameServers/1.2.3.14"
        },
        {
            "id": "2001:4860:4860::8888",
            "url": "/api/lunasa/network/devices/eth0/dns/nameServers/2001:4860:4860::8888"
        }

    ]
}

See Also

GET /api/lunasa/network/devices/{deviceid}/dns/nameServers/{nameServerid}