REST API  17
REST API for Luna Network HSMs
POST /api/lunasa/user/config/password/actions/{actionid}

POST /api/lunasa/user/config/password/actions/{actionid}

Perform user password configuration related actions.

User Privileges

Users with the following role privileges can perform this command:

  • admin

Parameters

actionid

The identifier of the action to be performed.

Use: Required

JSON Schema:

   Object
   type: string
   minLength: 6
   maxLength: 7
   pattern: ^(?:enable|disable)$

settingsToToggle

This parameter specifies the settings(expiryDays, history) that should be toggled.

Use: Not Required

JSON Schema:

    Object
    type: array
        settingsToToggle: Object
            type: string
            minLength: 7
            maxLength: 10
            minItems: 1
            maxItems: 2
            pattern: ^(?:expiryDays|history)$

Responses

204

Success

400

FRAMEWORK_BAD_REQUEST

Returned when the input data does not conform to the required validation schema.

400

APPLIANCE_USER_INVALID_PARAMETERS

Input parameters provided are invalid.

404

APPLIANCE_ACTION_DOES_NOT_EXIST

Specified action does not exist.

500

APPLIANCE_USER_FAILED_TO_PERFORM_ACTION

Failed to execute the action specified.

Example Request

   POST
   https://1.2.3.4:8443/api/lunasa/user/config/password/actions/enable
   {
      "settingsToToggle": ["expiryDays", "history"]
   }

Example Result

{
}