REST API  17
REST API for Luna Network HSMs
POST /api/lunasa/config/factoryReset

POST /api/lunasa/config/factoryReset

This resource will reset the appliance to the settings created at the factory.

Note : Resetting services to factory defaults can affect connectivity and the operation of the HSM.

Parameters

service

Specifies the name of the service.
Valid values: network,ssh,ntls,syslog,ntp,snmp,users,system,webserver,cluster,ismigration,ctc,all

Use: Required

JSON Schema:

    Object
    type:string
    minLength: 3
    maxLength: 12
    pattern: ^(network|ssh|ntls|syslog|ntp|snmp|users|system|webserver|ctc|all|cluster|ismigration)$

Responses

200

Success

400

FRAMEWORK_BAD_REQUEST

Returned when the input data does not conform to the required validation schema.

403

FRAMEWORK_CRITICAL_OPERATION_RUNNING

Critical Operation currently in Progress.

Example Request

To reset a specific service

    POST
    https://1.2.3.4:8443/api/lunasa/config/factoryReset
    {
      "service": "ntls"
    }

To reset all services

    POST
    https://1.2.3.4:8443/api/lunasa/config/factoryReset
    {
      "service": "all"
    }

Example Response

    {
    }