REST API  14
REST API for Luna Network HSMs
GET /api/lunasa/hsms/{hsmid}/roles/{roleid}

GET /api/lunasa/hsms/{hsmid}/roles/{roleid}

Gets the information associated with a specific HSM role.

Parameters

hsmid

The serial number of the HSM of interest

Use: Required

JSON Schema:

   Object
   type: string

roleid

The identifier of the role of interest

Use: Required

JSON Schema:

   Object
   type: string

Responses

200

role details

JSON Schema: HSM Role description

400

Unexpected error

404

HSM and role does not exist.

Example Request

   GET
   https://1.2.3.4:8443/api/lunasa/hsms/roles/audit

Example Result

{
    "primaryAuthentication": "PIN",
    "secondaryAuthentication": "None",
        "indirectLoginVersion": "None",
    "loginAttemptsLeft": 10,
        "changePasswordAttemptsLeft": 3,
        "name": "Auditor",
    "lockedOut": False,
    "activated": False,
    "challengeToBeChanged": False,
    "initialized": False,
    "pinToBeChanged": False,
    "id": "audit"
}