This URL retrieves the attack applications.
Resource URL
GET /alerts/TopN/attack_applications
Request Parameters
URL Parameters: None
Payload Request Parameters: None
Query Parameters:
Field Name | Description | Data Type | Mandatory |
|---|---|---|---|
| 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 |
|---|---|---|
| List of the top attack applications | Array |
Details of fields in TopAttackApplicationsList:
Field Name | Description | Data Type |
|---|---|---|
applicationName | The name of the application | String |
attackCount | Count of the attack | Number |
Example
Request
GET https://<NSM_IP>/sdkapi/alerts/TopN/attack_applications?duration=LAST_14_DAYS
Payload
None
Response
{
"TopAttackApplicationsList": [{
"applicationName": "PostgreSQL",
"attackCount": 2
}]
}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 |