Get File Inspection Events

Get File Inspection Events

Get list of file inspection events.

Request
URI
GET
https://{api_host}/napp/api/v1/malware-prevention/events
COPY
Query Parameters
integer
start_time
Required

Use this request param for specifiying starting time of a timeline. Value has to be specified in milliseconds since epoch.

integer
end_time
Required

Use this request param for specifiying ending time of a timeline. Value has to be specified in milliseconds since epoch.

string of array
sha256
Optional

Use this request param for specifying sha256 hash to filter. If this parameter is passed multiple times, OR condition will be assumed. If value passed is empty string, it will be considered as valid input for filtering.

string of array
sha1
Optional

Use this request param for specifying sha1 hash to filter. If this parameter is passed multiple times, OR condition will be assumed. If value passed is empty string, it will be considered as valid input for filtering.

string of array
md5
Optional

Use this request param for specifying md5 hash to filter. If this parameter is passed multiple times, OR condition will be assumed. If value passed is empty string, it will be considered as valid input for filtering.

string of array
verdict
Optional

Use this request param for specifying verdict to filter. If this parameter is passed multiple times, OR condition will be assumed. If value passed is empty string, it will be considered as valid input for filtering. Available values - BENIGN, TRUSTED, HIGHLY_TRUSTED, SUSPICIOUS, MALICIOUS, UNKNOWN, UNINSPECTED

boolean
allow_listed
Optional
Constraints: default: null

Used for specifying filter of allow listed files. By default, this parameter will be considered null and no filtering on allow_listed value will be applied.

string
sort_by
Optional
Constraints: default: INSPECTION_TIME

Field by which records are sorted. Only inspection_time based sorting is supported. Please specify the order of sorted data using sort_ascending parameter.

boolean
sort_ascending
Optional
Constraints: default: false

If records need to be sorted in ascending order.

string
cursor
Optional

Opaque cursor to be used for getting next page of records (supplied by current result page).

integer
page_size
Optional
Constraints: minimum: 1 maximum: 10000 default: 10000

Maximum number of results to return in this page (server may return fewer).

boolean
exclude_details
Optional
Constraints: default: false

Use this request param for excluding details so that only inspection timestamp, verdict and allow_listed fields will be returned in response. page_size query parameter will NOT be honoured if this property is set to true and will be overwritten with 10000 as page_size.

string of array
site_id
Optional

ID of the NSX+ site which reported this file event. If the parameter is not passed, corresponding API will respond with results across all sites managed within NSX+ instance. This parameter will support single value. If value passed is empty string, it will be considered as valid input for filtering. This parameter is supported only in NSX+.


Authentication
This operation uses the following authentication methods.
Responses
200

Successful Operation

Returns FileInspectionEventsListResult of type(s) application/json
This response body class contains all of the following: InlineFileInspectionEventsListResult1
"FileInspectionEventsListResult Object"

Code Samples
COPY
                    curl -H 'Authorization: <value>' https://{api_host}/napp/api/v1/malware-prevention/events?start_time=v