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

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

Deletes a name server entry.

User Privileges

Users with the following role privileges can perform this command:

  • admin
  • operator

Parameters

deviceid

The identifier of a network device.

Use: Required

JSON Schema:

    Object
    type: string

nameServerid

Specifies the id of the name server

Use: Required

JSON Schema:

    Object
    type:string
    pattern: [a-zA-Z0-9._[\]:-]

Responses

204

Success

404

APPLIANCE_NAME_SERVER_DOES_NOT_EXIST

The name server specified does not exist.

400

APPLIANCE_FAILED_TO_DELETE_NAME_SERVER

Unexpected error occured while deleting name server.

400

APICONFIG_NETDEVICE_NOT_CONFIGURED

Interface specified is not configured.

400

FRAMEWORK_BAD_REQUEST

Failed to execute due to malformed request.

404

APPLIANCE_INTERFACE_DOES_NOT_EXIST

Specified interface does not exist.

Example Request

    DELETE
    https://1.2.3.4:8443/api/lunasa/network/devices/eth0/dns/nameServers/{nameServerid}
    {}

Example Response

{}