REST API  4.0.0
REST API for SafeNet Network HSMs
POST /api/lunasa/logs

POST /api/lunasa/logs

Creates a log record on the appliance. The log record goes into lunalogs.

Note: Version 3 of REST API does not support this resource.

Parameters

title

A designator to categorize log messages by a user-defined scheme. For example, a client application might have a sub-system "Dispatcher" and a sub-system "Monitor" logging messages via the REST API. The title parameter enables differentiation of log messages with similar content.

Use: Required

JSON Schema:

   Object
   type: string

content

Principally the description field of the log record as described in "SafeNet Network HSM Monitoring: Syslog and SNMP" product documentation.

Use: Required

JSON Schema:

   Object
   type: string

Responses

204

Success

Location

JSON Schema:

    id: Object
        type: string

400

Unexpected error

Example Request

   POST 
   https://1.2.3.4:8443//api/lunasa/logs
   {"title": "DOCSigner", "content": "HSM zeroized on client initiation"}

Example Result

{'Access-Control-Allow-Origin': '*', 'Content-Type': 'application/json', 'Location': 'api/lunasa/logs', 'Content-Length': '2', 'Access-Control-Allow-Credentials': 'true'}

{
}