REST API
4.0.0
REST API for SafeNet Network HSMs
|
Logs out of the HSM.
The serial number of the HSM of interest
Use: Required
JSON Schema:
Object type: string
Success
"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.
Unexpected error
HSM does not exist.
POST https://1.2.3.4:8443/api/lunasa/hsms/154704/logout { }
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'} {}