REST API  14
REST API for Luna 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.This parameter will be validated.

Use: Required

JSON Schema:

    Object
    type:string

Responses

200

Success

400

Bad request or unexpected failure.

404

No action matched

Example Request

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

Example Response

    {
        "offset": 0.002569
    }

Notes

Synchronization requires the NTP service to be stopped.