Get Object's Config Log Item

GET /node/api/objects/:object_id/config-log/:item_id

Returns an object's log item.

Request parameters

Path parameters

Parameter
Type
Description
item_id
string
required
The ID of a log item to be retrieved.
object_id
string
required
The ID or discovery ID of the object whose config log item must be retrieved.

Response description

...

Examples

Request examples

Bash
JavaScript
NodeJS
Python
1
login=<...>
2
password=<...>
3
saymon_hostname=<...>
4
object_id=<...>
5
item_id=<...>
6
url=https://$saymon_hostname/node/api/objects/$object_id/config-log/$item_id
7
8
curl -X GET $url -u $login:$password
Copied!
1
let login = <...>
2
let password = <...>
3
let saymonHostname = <...>
4
let objectId = <...>
5
let itemId = <...>
6
let path = "/node/api/objects/" + objectId + "/config-log/" + itemId;
7
let auth = "Basic " + btoa(login + ":" + password);
8
9
let headers = new Headers();
10
headers.append("Authorization", auth);
11
12
let requestOptions = {
13
method: "GET",
14
headers: headers
15
};
16
17
fetch(saymonHostname + path, requestOptions)
18
.then(response => response.text())
19
.then(result => console.log(result))
20
.catch(error => console.log("error", error));
Copied!
1
const http = require("http");
2
3
let login = <...>
4
let password = <...>
5
let saymonHostname = <...>
6
let objectId = <...>
7
let itemId = <...>
8
let path = "/node/api/objects/" + objectId + "/config-log/" + itemId;
9
let auth = "Basic " + Buffer.from(login + ":" + password).toString("base64");
10
11
let options = {
12
"method": "GET",
13
"hostname": saymonHostname,
14
"headers": {
15
"Authorization": auth
16
},
17
"path": path
18
};
19
20
let req = http.request(options, function (res) {
21
let chunks = [];
22
23
res.on("data", function (chunk) {
24
chunks.push(chunk);
25
});
26
27
res.on("end", function (chunk) {
28
let body = Buffer.concat(chunks);
29
console.log(body.toString());
30
});
31
32
res.on("error", function (error) {
33
console.error(error);
34
});
35
});
36
37
req.end();
Copied!
1
import requests
2
3
login = <...>
4
password = <...>
5
saymon_hostname = <...>
6
object_id = <...>
7
item_id= <...>
8
url = "http://" + saymon_hostname + "/node/api/objects/" + \
9
object_id + "/config-log/" + item_id
10
11
response = requests.request("GET", url, auth=(login, password))
12
print(response.text)
Copied!

Response example

1
...
Copied!