You can request existing alert profiles using an HTTP GET request. You can also apply filters to requests. To view existing alerts, send the following HTTP GET request URL and headers:
GET https://<address>/wsapis/[v1.2.0|v2.0.0]/alerts?<filters>
Availability
This command is available on the following appliances:
Central Management System
Malware Analysis
Email Security — Server
File Protect
Network Security
Headers:
X-FeApi-Token: [API-Token] X-FeClient-Token: [Client-Token] Accept: [Content-Type]
Options
address—The IP address of the appliance running the Web Services API.API-Token—This token authenticates the session. By default, the session times out after 15 minutes of inactivity.Client-Token—(Optional) This client token is provided by Trellix. For more information about the client token, contact your sales representative.Content-Type—(Optional) You can request responses in one of two alert formats:application/xml—(Default) If content type is not specified, alerts are delivered in the XML format.application/json—Specify this option to receive alerts in JSON format.Note
The JSON output uses the pretty-print format, which includes line breaks between values.
Filters
Use the filters in the following table to limit your request.
Filter | Description |
|---|---|
| Specifies the ID number of the alert to retrieve. Syntax: Example: |
| Overrides the limit of the number of alerts. Syntax: Example: |
| Searches for alerts that include callbacks to the specified domain. Syntax: Example: |
| The destination IPv4 address related to the malware alert. Syntax: Example: |
| Specifies the time interval to search. This filter is used with either the NoteYou cannot specify both a Syntax:
Example: |
| Specifies the end time of the search. This filter is used with the NoteYou cannot specify both a Syntax:
Example: |
| The name of the malware file. Syntax: Example: |
| The malware file type. Syntax: Example: |
| Includes or removes OS changes. Syntax: Example: |
| Specifies the level of information to be returned. The default is
Syntax: Example: NoteWhen using API v1.2.0 at info_level normal or extended, the response includes ATI data. This information is not included in the response when using v2.0.0. To retrieve ATI data for the specific alert ID, use the ATI details request. |
| Specifies the number of alerts to be returned. Syntax: Example: |
| The name of the malware object. Syntax: Example: |
| The type of the malware object:
Syntax: Example: cURL example: |
| Searches for alerts that include a specific MD5 hash. NoteThe Syntax: Example: NoteThe system tests for a valid MD5 hash. Using this filter without a qualified MD5 hash will return a 400 Bad Request response. |
| Offset is the starting point from where the alert listing will start. If the offset is zero, the returned alerts list will start from the first alert. If the offset is 5, the returned alerts list will start from the 5th alert. Syntax: Example: |
| The email address of the malware object receiver. This filter does not default to Syntax: Example: |
| The email address of the malware object sender. This filter does not default to Syntax: Example: |
| The source IPv4 address related to the malware alert. Syntax: Example: |
| Specifies the start time of the search. This filter is used with the NoteYou cannot specify both a Syntax:
Example: |
| Searches for a specific alert URL. Syntax: Example: |
Example request with no filtering
Note
In this example, the searchʼs duration filter will be set to 12_hours (default), and the end_time filter will be set to the current time (default).
GET https://xxx.xxx.xxx.xxx:443/wsapis/v2.0.0/alerts?
Request headers:
X-FeApi-Token: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx X-FeClient-Token: BigDataInc
Example request with filtering
This example specifies the start time and duration.
GET https://xxx.xxx.xxx.xxx:443/wsapis/v2.0.0/ alerts?start_time=2018-07-03T21:19:01:39:000%2b00:00&duration=2_hours
Request headers:
X-FeApi-Token: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx X-FeClient-Token: BigDataInc