This URL is used to delete all alerts.
Resource URL
DELETE /alerts? alertstate=<state> &timeperiod==<timeperiod> &startime==<start_time> &endtime=<end_time>&search=<search_strng>&filter=<filter_value>
Request Parameters
Query Parameters:
| Field Name | Description | Data Type | Mandatory |
|---|---|---|---|
| alertstate | Alert state, values allowed are, ANY/Acknowledged/Unacknowledged | String | No |
| timeperiod | Time period, allowed values are
|
String | No |
| starttime | Start time | String | No |
| endtime | End time | No | |
| search | Search | String | No |
| Filter | Filter on following column is allowed
name, assignTo, application, layer7Data, result, attackCount, relevance, alertId, direction, device, domain, interface, attackSeverity, nspId, btp, attackCategory, malwarefileName, malwarefileHash, malwareName, malwareConfidence, malwareEngine ,executableName, executableHash, executableConfidenceName, attackerIPAddress, attackerPort, attackerRisk, attackerProxyIP, attackerHostname, targetIPAddress, targetPort, targetRisk, targetProxyIP, targetHostname, botnetFamily Ex: name:Malware;direction:Inbound,Outbound;attackcount:>3,<4 |
String | No |
Response Parameters
Following fields are returned if the request parameters are correct, otherwise error details are returned.
| Field Name | Description | Data Type |
|---|---|---|
| status | Set to 1 if the operation was successful, -1 otherwise | Number |
Example
Request
Response
{
"status":1
}
Error Information
Following error codes are returned by this URL:
| No | HTTP Error Code | SDK API errorId | SDK API errorMessage |
|---|---|---|---|
| 1 | 404 | 3704 | Invalid filter value |
| 2 | 404 | 9803 | Sensor id is required |
| 3 | 404 | 9803 | Manager name is required |