NinjaOne icon

NinjaOne

Ninja One Public API documentation. <br><br>See also: <br> <a href="https://resources.ninjarmm.com/API/Ninja+RMM+Public+API+v2.0.5+Device+Filter+Syntax.pdf">Device Filter syntax</a><br><a href="https://app.ninjarmm.com/apidocs-beta/core-resources/articles/webhooks/overview">Webhooks</a>

Actions309

Queries → Antivirus status report

AI-generated

Summary

Fetches a report of antivirus status by querying the /v2/queries/antivirus-status endpoint.

Inputs

  • Return All — Whether to return all result pages or only a single page of antivirus status records.
  • Additional Fields — Optional filters and pagination parameters including device filter (Df), monitoring timestamp (Ts), product state, product name, cursor for pagination, and page size to limit records per page.
  • Options — Allows specifying custom JSON body fields (merged with other fields), custom HTTP headers, query-string filters, batching settings, debug flag for request info, pagination mode and settings, and request timeout.

Output shape

a paginated list of antivirus status report items in JSON format

Supports configurable pagination modes (offset, cursor, next-url) with options to limit pages, control page size, and add query filters. Debug mode includes raw request details in the output.

Examples

Example 1: Retrieve all antivirus status records filtering by a specific product state with pagination.

Set 'Return All' to true, specify 'Product State' in Additional Fields, and configure pagination to offset mode with page size and max pages as desired.

Links

Discussion