REST API  4.0.0
REST API for SafeNet Network HSMs
POST /api/lunasa/ntp/actions/{actionid}

POST /api/lunasa/ntp/actions/{actionid}

Performs the specified action.

Parameters

actionid

This parameter specifies the id of the action to be performed

Use: Required

JSON Schema:

    Object
    type:string

server

This parameter specifies the address of server that is used for NTP synchronization

Use: Required

JSON Schema:

    Object
    type:string

Responses

200

Success

400

Unexpected error

404

No action matched

Example Request

    POST
    https://1.2.3.4:8443/api/lunasa/ntp/actions/synchronize
    {
        "server": "1.2.3.4"
    }

Example Response

    {
        "offset": 0.002569
    }

Notes

Synchronization requires the NTP service to be stopped.