Skip to content

Get list of blocked actions

Returns the list of actions blocked by REST-server limits.Permissions: manage-users.

Request

HTTP Request

GET /node/api/limit-block-log

Path parameters

No parameters required.

Query parameters

Parameter Type Description
from Integer
optional
Timestamp for the beginning of the time period.
ip Boolean
optional
If true, display all fields with non-empty values.
If false, display all fields with an empty value.
limit Integer
optional
Maximal amount of records.
login Boolean
optional
If true, display all fields with non-empty values.
If false, display all fields with an empty value.
skip Integer
optional
Number of records which will be omitted.
to Integer
optional
Timestamp for the end of the time period.
uri Boolean
optional
If true, display all fields with non-empty values.
If false, display all fields with an empty value.
user Boolean
optional
If true, display all fields with non-empty values.
If false, display all fields with an empty value.

Request body

The request body is empty.

Response

Field Type Description
ip String The IP address of the request.
login String User's login.
timestamp Integer Blocking time (ms).
ttl Integer Remaining blocking time (s).
uri String The path of the request.
user String User's ID.

Examples

Request examples

login=<...>
password=<...>
saymon_hostname=<...>
url=http://$saymon_hostname/node/api/limit-block-log?ip=false
curl -X GET $url -u $login:$password
let login = <...>
let password = <...>
let auth = "Basic " + btoa(login + ":" + password)
let path = "/node/api/limit-block-log?limit=1&user=true"
let saymonHostname = <...>

let myHeaders = new Headers();
myHeaders.append("Authorization", auth);

let requestOptions = {
  method: 'GET',
  headers: myHeaders,
  redirect: 'follow'
};

fetch(saymonHostname + path, requestOptions)
  .then(response => response.text())
  .then(result => console.log(result))
  .catch(error => console.log('error', error));
let http = require('follow-redirects').http;
let fs = require('fs');
let saymonHostname = <...>;
let login = <...>;
let password = <...>;
let path = '/node/api/limit-block-log?limit=1&user=true';
let auth = 'Basic ' + Buffer.from(login + ':' + password).toString('base64');

let options = {
  'method': 'GET',
  'hostname': saymonHostname,
  'path': path,
  'headers': {
    'Authorization': auth
  },
  'maxRedirects': 20
};

let req = http.request(options, function (res) {
  let chunks = [];

  res.on("data", function (chunk) {
    chunks.push(chunk);
  });

  res.on("end", function (chunk) {
    let body = Buffer.concat(chunks);
    console.log(body.toString());
  });

  res.on("error", function (error) {
    console.error(error);
  });
});

req.end();
import requests
login = <...>
password = <...>
saymon_hostname = <...>
path = "/node/api/limit-block-log?limit=1&user=true"

url = "http://" + saymon_hostname + path

response = requests.request("GET", url, auth=(login, password))

print(response.text)

Response example

"timestamp": 1617960251155,
"ttl": 47,
"user": "57ff6853fa6db3a63d16d07b",
"uri": "/api/objects/:id/stat",
"login": "user"