REST API  17
REST API for Luna Network HSMs
GET /api/lunasa/ntp/status

GET /api/lunasa/ntp/status

This resource returns information of NTP time, max error, estimated error and offset.

User Privileges

Users with the following role privileges can perform this command:

  • admin
  • operator
  • monitor

Parameters

None.

Responses

200

Success

JSON Schema: NTP Status

412

SYSCONF_CONFIG_NTP_SERVICE_NOT_RUNNING

NTP service must be started before requesting this resource.

500

NTP_OPERATION_FAILED

Unable to perform requested operation.

Example Request

    GET
    https://1.2.3.4:8443/api/lunasa/ntp/status
    {
    }

Example Response

{
 "lastOffset": "+0.000000000",
  "ntpTime": "0000-01-00T00:00:00",
  "rootDelay": "1.000000000",
  "rootDispersion": "1.000000000"
}

Notes

NTP service needs to be started to get the status.