REST API  4.0.0
REST API for SafeNet Network HSMs
PUT /api/lunasa/ntp/servers/{serverid}

PUT /api/lunasa/ntp/servers/{serverid}

This resource allows changing settings for a specific server.

Parameters

serverid

Specifies the id of the NTP server.

Use: Required

JSON Schema:

    Object
    type:string

keyId

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

Use: Required

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.

400

Unexpected failure.

404

Specified server does not exist.

Example Request

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

Example Response

{
}

Notes

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

See Also

GET /api/lunasa/ntp/servers