This URL gets the firewall logging for the Sensor.
Resource URL
GET /sensor/<sensor_id>/firewalllogging
Request Parameters
URL Parameters:
Field Name | Description | Data Type | Mandatory |
|---|---|---|---|
| Sensor id | Number | Yes |
Response Parameters
Following fields are returned.
Field Name | Description | Data Type |
|---|---|---|
| To enable the suppression | Boolean |
| Individual message | Number |
| Suppression interval | Number |
| Unique source destination IP pairs | Number |
| Logging type can be:
| String |
| Delivery type can be: "MESSAGES_TO_TARGET_SYSLOGSERVER_VIA_MANAGER", "MESSAGES_TO_TARGET_SYSLOGSERVER_DIRECTLY_FROM_DEVICE" | String |
Example
Request
GET https://<NSM_IP>/sdkapi/sensor/1001/firewalllogging
Response
{
"loggingType": "LOG_ALL_MATCHED_TRAFFIC",
"deliveryType": "MESSAGES_TO_TARGET_SYSLOGSERVER_VIA_MANAGER",
"isSuppressionEnabled": false,
"individualMessage": 25,
"suppressionInterval": 120,
"uniqueSourceDestinationIPpairs": 10
}
Error Information
Following error code is returned by this URL:
No | HTTP Error Code | SDK API errorId | SDK API errorMessage |
|---|---|---|---|
1 | 404 | 1106 | Invalid Sensor |