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

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

Gets all roles associated with the partition.

Parameters

hsmid

The serial number of the HSM of interest

Use: Required

JSON Schema:

   Object
   type: string

partitionid

The identifier of the partition of interest

Use: Required

JSON Schema:

   Object
   type: string

Responses

200

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

JSON Schema: Partition Roles

400

Unexpected error

404

HSM or partition does not exist.

Example Request

   GET 
   https://1.2.3.4:8443//api/lunasa/hsms/117290/partitions/273087011507/roles

Example Result

{
    "roles": [
        {
            "id": "co",
            "name": "Crypto Officer",
            "url": "api/lunasa/hsms/117290/partitions/273087011507/roles/co"
        },
        {
            "id": "cu",
            "name": "Crypto User",
            "url": "api/lunasa/hsms/117290/partitions/273087011507/roles/cu"
        },
        {
            "id": "so",
            "name": "Security Officer",
            "url": "api/lunasa/hsms/117290/partitions/273087011507/roles/so"
        }
    ]
}

See Also

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