REST API  15
REST API for Luna Network HSMs
PUT /api/lunasa/webServer/blocklist

PUT /api/lunasa/webServer/blocklist

Modifies the web server blocklist configuration.

Parameters

maxInfractionCount

The maxiumum amount of infractions that can be made before a user is blocklisted.

Use: Not Required

JSON Schema:

    Object
    type:integer

timeoutStart

The starting timeout of a blocklist entry.

Use: Not Required

JSON Schema:

    Object
    type:integer

timeoutMultiplier

The timeout multiplier that defines how much to increment the timeout upon an infraction.

Use: Not Required

JSON Schema:

    Object
    type:integer

severity

The severity of the blocklist as a percentage (0-100). 0 being more tolerant while 100 being more strict, the default value is 50 percent. This parameter replaces the use of the above three parameters.

Use: Not Required

JSON Schema:

    Object
    type:integer

Responses

204

Success

400

Unexpected error

Example Request

  PUT 
  https://1.2.3.4:8443/api/lunasa/webServer/blocklist
  {
    "maxInfractionCount": 10,
    "timeoutStart": 5,
    "timeoutMultiplier": 1.5
  }

Example Request (Severity)

  PUT 
  https://1.2.3.4:8443/api/lunasa/webServer/blocklist
  {
    "severity": 50
  }

Example Result

{
}