This URL retrieves the top malware downloads.
Resource URL
GET /alerts/TopN/malware_downloads
Request Parameters
URL Parameters: None
Payload Request Parameters: None
Query Parameters:
| Field Name | Description | Data Type | Mandatory |
|---|---|---|---|
| duration | Indicates the start time for the alerts. The default value is LAST_14_DAYS. Duration can be:
|
String | No |
Response Parameters
Following fields are returned.
| Field Name | Description | Data Type |
|---|---|---|
| TopMalwareDownloadsList | List of the top malware downloads | Array |
Details of fields in TopMalwareDownloadsList:
| Field Name | Description | Data Type |
|---|---|---|
| fileHash | The malware file hash | String |
| attackCount | Count of the attack | Number |
Example
Request
GET https://<NSM_IP>/sdkapi/alerts/TopN/malware_downloads?duration=LAST_14_DAYS
Payload
None
Response
{
"TopMalwareDownloadsList":[]
}
Error Information
Following error codes are returned by this URL:
| No | HTTP Error Code | SDK API errorId | SDK API errorMessage |
|---|---|---|---|
| 1 | 500 | 1001 | Internal error |
| 2 | 400 | 3601 | Invalid duration |