REST API  14
REST API for Luna Network HSMs
GET /api/lunasa/syslog/logs/{logid}

GET /api/lunasa/syslog/logs/{logid}

Gets information about the log.

User Privileges

Users with the following role privileges can perform this command:

  • admin
  • operator
  • monitor

Parameters

logid

The identifier of the log.
Valid values: lunalogs,clusterlogs,dbMigrationlogs,messages,secure,ntp,snmp.

Use: Required

JSON Schema:

   Object
   type: string

Responses

200

Success

JSON Schema: Syslog Log

400

Unexpected Error

404

Log does not exist.

Example Request

    GET
    https://1.2.3.4:8443/api/lunasa/syslog/logs/lunalogs
    {
    }

Example Response

{
    "tail": "Last 10 lines of the log.",
    "severity": "debug",
    "tar": "/api/lunasa/syslog/logs/lunalogs/tar"
}

Notes

Severity will be null for SNMP and NTP logs.