Get website denylog
Returns denylog entries for a given website.
URL
/api/v1/website/[website_id]/denylog
HTTP Method
GET
URL Parameters
| Parameter | Required | Type | Description |
|---|---|---|---|
| website_id | true | integer | Specifies the website ID to return denylog entries for. |
Response Parameters
Returns an array of denylog_entry.
denylog_entry
A denylog_entry object is an array containing the following:
|
Index |
Parameter |
Type |
Description |
|---|---|---|---|
|
0 |
id |
string containing integer |
ID of the deny log entry |
|
1 |
time |
string containing integer |
Timestamp of the denied request |
|
2 |
source |
string containing integer |
The source IP address represented as an integer |
|
3 |
host |
string containing hostname/IP address |
The target host of the denied request |
|
4 |
path |
string containing URL path |
The target path of the denied request |
|
5 |
violation_id |
string containing integer |
ID of the violation that occurred |
|
6 |
status |
string containing integer |
Indicates whether the deny entry has been added to the ACL "0" → has not been added to ACL |
|
7 |
attack_class_id |
string containing integer |
ID of the attack class "1" → SQL injection |
|
8 |
resp_status |
string containing integer |
HTTP status code returned by the response |
|
9 |
resp_time |
string containing integer |
The time from when the WSM received the request and forwarded it to the backend server until the response is sent to the client from WSM Measured in milliseconds |
|
10 |
backend_host |
string containing integer |
Indicates which backend host received the request (0 for 1st host, 1 for 2nd, etc) |
|
11 |
action |
string containing integer |
Action applied to the request "-1" → Block IP |
|
12 |
risk |
string containing integer |
Indicates risk level associated with the deny entry "1" → Critical |
|
13 |
ccode |
string containing country code |
Country code for origin of the denied request |
|
14 |
proto |
string containing integer |
Protocol of the request "1" → http |
|
15 |
normality_score |
string containing integer |
Expresses the normality in parts per million |
|
16 |
normality_flag |
string containing integer |
Indicates the normality of the denied request "0" → Normal |
|
17 |
compromise_score |
string containing integer |
Expresses the fidelity of the compromise observation |
Example: Get available websites
Request
/api/v1/website/1/denylog
curl -kv
-u api_ninja:ninja_password
-X GET
https://172.31.1.172:4849/api/v1/website/1/denylog
Response
[
[
"10000",
"1477424180",
"30348151",
"www.example.com",
"/a/path",
"5",
"0",
"99",
"200",
"285",
"0",
"0",
"0",
"CN",
"1",
"0",
"0",
"0"
],
[
"9999",
"1477424180",
"18663245",
"www.anotherexample.com",
"/another/path",
"8",
"0",
"99",
"200",
"285",
"0",
"0",
"0",
"CN",
"1",
"0",
"0",
"0"
]
]