This URL gets the details of an attack filter.
Resource URL
GET /attackfilter/<attackfilter_id>
Request Parameters
URL Parameters:
Field Name | Description | Data Type | Mandatory |
|---|---|---|---|
| Attack filter id | Number | Yes |
Response Parameters
Following fields are returned if the request parameters are correct, otherwise error details are returned.
Field Name | Description | Data Type |
|---|---|---|
| Attack filter name | String |
| Attack filter id | Number |
| Description | String |
| Id of domain to which this attack filter belongs to | Number |
| Last modified timestamp | String |
| Attack filter type, can be "IPV_4" / "IPV_6" / "TCP_UDP_PORT" / "IPV_4_TCP_UDP_PORT" / "IPV_6_TCP_UDP_PORT" | String |
| Attack filter exclusion | Object |
Details of MatchCriteria:
Field Name | Description | Data Type |
|---|---|---|
| List of IP - port exclusions | Array |
Details of object in Exclusion (depends on the Type defined):
Field Name | Description | Data Type |
|---|---|---|
| IPv4 or IPv6 IP | Object |
| TCP / UDP port | Object |
Details of Ip:
Field Name | Description | Data Type |
|---|---|---|
| Source start IP | String |
| Source end IP | String |
| Destination start IP | String |
| Destination end IP | String |
| Source IP mode, can be "ANY_IP" / "ANY_EXTERNAL_IP" / "ANY_INTERNAL_IP" / "RANGE_IP" / "SINGLE_IP" | String |
| Destination IP mode, can be "ANY_IP" / "ANY_EXTERNAL_IP" / "ANY_INTERNAL_IP" / "RANGE_IP" / "SINGLE_IP" | String |
Details of port:
Field Name | Description | Data Type |
|---|---|---|
| Source port | String |
| Destination port | String |
| Source port mode, can be "ANY_PORT" / "TCP_OR_UDP" / "TCP" / "UDP" | String |
| Destination port mode, can be "ANY_PORT" / "TCP_OR_UDP" / "TCP" / "UDP" | String |
Example
Request
GET https://<NSM_IP>/sdkapi/ attackfilter/420
Response
{
"DomainId": 0,
"MatchCriteria": {
"Exclusion": [
{
"Ip": {},
"Port": {
"srcPortMode": "TCP",
"srcPort": "85",
"destPort": "89",
"destPortMode": "TCP"
}
}
]
},
"LastModTs": "2012-07-24 00:19:00",
"attackFilterId": 420,
"Type": "TCP_UDP_PORT",
"name": "test2"
}
Error Information
Following error code isreturned by this URL:
S.No | HTTP Error Code | SDK API errorId | SDK API errorMessage |
|---|---|---|---|
1 | 404 | 1408 | Invalid attack filter id |