A HTTP GET to /api/edge/data.json?data=fw_stats can be used to get a JSON formatted list of firewall statistics.
| Name | Type | Values | Description |
|---|---|---|---|
|
String |
A boolean encapsulated in a string (e.g. |
Whether the API request was successful. |
|
Object |
|
The output to the data request. |
| Name | Type | Values | Description |
|---|---|---|---|
|
Array of Dictionary |
|
An array of dictionary items of |
|
Array of Dictionary |
|
An array of dictionary items of |
| Name | Type | Values | Description |
|---|---|---|---|
Key |
String |
The unique name of a particular firewall ruleset (e.g. |
A property that represents the unique firewall ruleset name. |
Value |
Array (Object) |
Array of |
An object that represents a particular firewall rule’s statistics. |
| Name | Type | Values | Description |
|---|---|---|---|
|
String |
A number encapsulated in a string (e.g. |
The rule number for this particular firewall entry. |
|
String |
A number encapsulated in a string (e.g. |
The number of packets that this firewall rule has matched. |
|
String |
A number encapsulated in a string (e.g. |
The number of bytes that this firewall rule has matched. |
{"success": "1", "output": {"name": [{"WAN_IN": [{"rule": "10", "pkts": "36837", "bytes": "6953322"}, {"rule": "20", "pkts": "0", "bytes": "0"}, {"rule": "21", "pkts": "3", "bytes": "184"}, {"rule": "22", "pkts": "0", "bytes": "0"}, {"rule": "10000", "pkts": "0", "bytes": "0"}], "WAN_LOCAL": [{"rule": "10", "pkts": "3875", "bytes": "589011"}, {"rule": "20", "pkts": "342", "bytes": "21329"}, {"rule": "10000", "pkts": "3236", "bytes": "262149"}]}]}}