REST API  4.0.0
REST API for SafeNet Network HSMs
POST /api/lunasa/ntp/servers

POST /api/lunasa/ntp/servers

This resource adds an NTP server.

Parameters

address

Specifies the address of the NTP server. Valid ip address and hostname may be specified.

Use: Required

JSON Schema:

    Object
    type:string

keyId

Specifies the key id used in communication with the NTP server (1-65535).

Use: Optional

JSON Schema:

    Object
    type:integer

protocolVersion

Specifies the protocol version used in communication with the NTP server (1-4).

Use: Required

JSON Schema:

    Object
    type:integer

isAutokeyEnabled

Specifies flag controlling enabling autokey authentication.

Use: Required

JSON Schema:

    Object
    type:boolean

isBurstEnabled

Specifies flag controlling sending a burst of packets instead of usual single packet.

Use: Required

JSON Schema:

    Object
    type:boolean

isInitialBurstEnabled

Specifies flag controlling sending a burst of packets when an initial connection cannot be established.

Use: Required

JSON Schema:

    Object
    type:boolean

isPreferredServer

Specifies flag designating this server as the preferred one.

Use: Required

JSON Schema:

    Object
    type:boolean

Responses

204

Success

Location

"Location" is the URL to the newly created NTP server.

see GET /api/lunasa/ntp/servers/{serverid}

400

Unexpected failure

Example Request

    POST
    https://1.2.3.4:8443/api/lunasa/ntp/servers
    {
       "isAutokeyEnabled": false,
       "isInitialBurstEnabled": true,
       "isBurstEnabled": false,
       "isPreferredServer": true,
       "protocolVersion": 3,
       "address": "example.com"
    }

Example Response

    {
    }

Notes

This resource will require SO authentication when the forceSoLogin flag is enabled. (See GET /api/lunasa)