|  | REST API
    4.0.0
    REST API for SafeNet Network HSMs | 
Gets all roles associated with the partition.
The serial number of the HSM of interest
Use:  Required  
JSON Schema:  
Object type: string
The identifier of the partition of interest
Use:  Required  
JSON Schema:  
Object type: string
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  
Unexpected error
HSM or partition does not exist.
 
GET https://1.2.3.4:8443//api/lunasa/hsms/117290/partitions/273087011507/roles
 
{
    "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"
        }
    ]
}
GET /api/lunasa/hsms/{hsmid}/partitions/{partitionid}/roles/{roleid}