REST API  4.0.0
REST API for SafeNet Network HSMs
POST /api/lunasa/hsms/{hsmid}/logout

POST /api/lunasa/hsms/{hsmid}/logout

Logs out of the HSM.

Parameters

hsmid

The serial number of the HSM of interest

Use: Required

JSON Schema:

   Object
   type: string

Responses

204

Success

Location

"Location" is the URL to the HSM logged out and is returned in the server response. You can use "Location" to form a GET resource to query the HSM status.

see GET /api/lunasa/hsms/{hsmid}


For PED-based HSMs, "Location" is the URL to the task spawned to log out the HSM.

400

Unexpected error

404

HSM does not exist.

Example Request

   POST 
   https://1.2.3.4:8443/api/lunasa/hsms/154704/logout
   { }

Example Result

password-based HSM:
{'Access-Control-Allow-Origin': '*', 'Content-Type': 'application/json', 'Location': '/api/lunasa/hsms/154704', 'Content-Length': '2', 'Access-Control-Allow-Credentials': 'true'}

PED-based HSM
{'Access-Control-Allow-Origin': '*', 'Content-Type': 'application/json', 'Location': '/tasks/2', 'Content-Length': '712', 'Access-Control-Allow-Credentials': 'true'}

{}