NinjaOne RMM icon

NinjaOne RMM

Interact with NinjaOne RMM API

Query → Get Antivirus Threats

AI-generated

Summary

Retrieve antivirus threat data matching optional device and time filters, returning either all results or a limited set.

Inputs

  • Return All — Boolean to specify whether to return all results or limit the number returned (default false).
  • Limit — Number specifying the maximum number of results to return when Return All is false (default 50, min 1, max 1000).
  • Filters — Optional filters to refine the query: Device Filter (string query supporting expressions) and Since (Unix timestamp to return results from that time onward).

Output shape

a list of antivirus threat records, each as an individual output item

If Return All is true, all matching threat records are returned. Otherwise, results are limited to the specified Limit. The output data corresponds to the API returned 'results' array for antivirus threats query.

Examples

Example 1: Fetch the latest 100 antivirus threats for approved devices

Set Return All false, Limit 100, and Filters Device Filter with 'status=APPROVED'.

Example 2: Retrieve all antivirus threats since a specific timestamp

Set Return All true and Filters Since with the Unix timestamp representing the start time.

Links

Discussion