This URL unassign the attack filters assigned to a particular interface or subinterface for a specific attack.
Resource URL
GET /sensor/<sensor_id>/interface/<interface_id or subinterface_id>/attackfilter/<attack_id>
Query Parameter: ?direction=
- INBOUND
- OUTBOUND
If the direction is not defined, it will throw error
Request Parameters
URL Parameters:
| Field Name | Description | Data Type | Mandatory |
|---|---|---|---|
| sensor_id | Sensor id | Number | Yes |
| interface_id or subinterface_id | interface/subinterface id | Number | Yes |
| attack_id | Attack id to which the attack filters are assigned | String | Yes |
| direction | Direction type can be INBOUND or OUTBOUND | String | Yes |
Response Parameters
Following fields are returned if the request parameters are correct, otherwise error details are returned.
| Field Name | Description | Data Type |
|---|---|---|
| Status | Status returned by unassignment | Number |
Example
Request
GET https://%3CNSM_IP%3E/sdkapi/sensor/1001/interface/105/attackfilter/0x40503900?direction=INBOUND
Response
{
"status":1
}
Error Information
Following error codes are returned by this URL:
| S.No | HTTP Error Code | SDK API errorId | SDK API errorMessage |
|---|---|---|---|
| 1 | 404 | 1402 | Invalid attack id |
| 2 | 404 | 1106 | Invalid Sensor |
| 3 | 404 | 1107 | Invalid interface or sub-interface id |
| 4 | 404 | 1403 | Invalid attack direction |