REST API  4.0.0
REST API for SafeNet Network HSMs
GET /api/lunasa/hsms/{hsmid}/roles

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

Gets all roles associated with the HSM.

Parameters

hsmid

The serial number of the HSM of interest

Use: Required

JSON Schema:

   Object
   type: string

Responses

200

A list of all roles associated with the appliance. The list includes unique identifiers that can be used to get more specific information.

JSON Schema: HSM Roles

400

Unexpected error

404

HSM does not exist.

Example Request

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

Example Result

{
    "roles": [
        {
            "id": "audit",
            "name": "Auditor",
            "url": "/api/lunasa/hsms/151256/roles/audit"
        },
        {
            "id": "so",
            "name": "Security Officer",
            "url": "/api/lunasa/hsms/151256/roles/so"
        }
    ]
}

See Also

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