REST API  16
REST API for Luna Network HSMs
GET /users/{userid}/actions

GET /users/{userid}/actions

This resource will display the list of actions available to perform on an user.

User Privileges

Users with the following role privileges can perform this command:

  • admin
  • operator
  • monitor

NOTE: non-admin level user can access changePassword, only to change their own password.

Parameters

userid

The identifier of a user.

Use: Required

JSON Schema:

    Object
    type: string

Responses

200

Success

User Action info

JSON Schema: User Action

400

SERVERPLUGIN_INTERNAL_ERROR

Unexpected error

401

SERVERPLUGIN_USERID_NOT_AUTHORIZED

Loggedin user isn't allowed to perform this action for this userid.

404

SERVERPLUGIN_INVALID_USERID

User does not exist.

Example Request

   GET
   https://1.2.3.4:8443/users/admin/actions
   { }

Example Result

{
    "actions": [
        {
            "id": "changePassword",
            "url": "/users/admin/actions/changePassword"
        },
        {
            "id": "enable",
            "url": "/users/admin/actions/enable"
        },
        {
            "id": "disable",
            "url": "/users/admin/actions/disable"
        },
        {
            "id": "roleClear",
            "url": "/users/admin/actions/roleClear"
        }
    ]
}