REST API  15
REST API for Luna Network HSMs
All Files Pages
POST /roles

POST /roles

This resource creates a REST API role. Can only contain alphanumeric characters. It will be available in LunaSH too. Only the "exit" command will be accessible in LunaSH through this resource.

User Privileges

Users with the following role privileges can perform this command:

  • admin

Parameters

roleId

The role ID of the role to create.

Use: Required

JSON Schema:

   Object
   type: string

fullName

The full name of the role.

Use: Not Required

JSON Schema:

   Object
   type: string

Responses

204

Success

Location

"Location" is the URL to the newly created role.

400

Unexpected failure

Example Request

    POST
    https://1.2.3.4:8443/roles
    {
       "roleId": "restRole",
       "fullName": "restRoleName"
    }

Example Response

    {
    }