![]() |
REST API
17
REST API for Luna Network HSMs
|
Update user login related configuration.
Users with the following role privileges can perform this command:
Interval(in seconds) within which login infringements would be observed. Resets on a successful login.
Use: Required
JSON Schema:
Object type: integer format: uint32 minimum: 60 maximum: 86400 default: 900
Interval for which an account would be locked if max failed login attempts reached.
Use: Required
JSON Schema:
Object type: integer format: uint32 minimum: 60 maximum: 86400 default: 600
Maximum number of bad login attempts allowed.
Use: Required
JSON Schema:
Object type: integer format: uint32 minimum: 0 default: 3
The following table shows defined values for parameters.
| Parameter | Range | Default Value |
|---|---|---|
| maxFailedAttempts | 0 - NA | 3 |
| lockoutDurationSeconds | 60 - 86400 | 600 |
| detectionWindowSeconds | 60 - 86400 | 900 |
Sucess
Returned when the input data does not conform to the required validation schema.
Failed to update the login configuration.
PUT
https://1.2.3.4:8443/api/lunasa/user/config/login
{
"detectionWindowSeconds": 500,
"lockoutDurationSeconds": 400,
"maxFailedAttempts": 5
}
{
}