This URL gets all the attack filters defined in the specified domain.
Resource URL
GET /attackfilters?domain=<domain_id>
Request Parameters
URL Parameters:
Field Name | Description | Data Type | Mandatory |
|---|---|---|---|
| ID of domain in which the attack filter has been created | Number | No |
Response Parameters
Following fields are returned if the request parameters are correct, otherwise error details are returned.
Field Name | Description | Data Type |
|---|---|---|
| List of attack filters with basic details | Array |
Details of object in AttackFilterDescriptor:
Field Name | Description | Data Type |
|---|---|---|
| Attack filter visible to child domain | Boolean |
| ID of domain in which the attack filter was added | Number |
| If attack filter editable | Boolean |
| Last modified timestamp | String |
| Attack filter id | Number |
| Attack filter name | String |
Example
Request
GET https://<NSM_IP>/sdkapi/ attackfilters?domain=0
Response
{
"AttackFilterDescriptor": [
{
"VisibleToChild": false,
"name": "test1",
"IsEditable": false,
"filterId": 419,
"DomainId": 0,
"LastModTs": "2012-07-24 00:14:00"
},
{
"VisibleToChild": false,
"name": "test2",
"IsEditable": false,
"filterId": 420,
"DomainId": 0,
"LastModTs": "2012-07-24 00:19:00"
}
]
}
Error Information
Following error codes are returned by this URL:
S.No | HTTP Error Code | SDK API errorId | SDK API errorMessage |
|---|---|---|---|
1 | 404 | 1105 | Invalid domain |