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 → Disk drives report

AI-generated

Summary

Retrieve a report of disk drives from the NinjaOne platform with optional filtering, pagination, and customization of request parameters.

Inputs

  • Return All — Boolean to specify whether to return all pages of disk drive records or just a single page.
  • Additional Fields — Optional filters for the disk drives query such as device filter (df), monitoring timestamp (ts), cursor for pagination, and page size to limit records per page.
  • Options — Additional customizable options including sending a custom JSON body (overriding other parameters), adding custom HTTP headers, adding query-string filters, batching settings to control request grouping and intervals, enabling debug output, configuring pagination behavior (offset- or cursor-based, page size, max pages, request interval), and setting request timeout in milliseconds.

Output shape

a list of disk drive records as returned by the NinjaOne API, optionally paginated according to input settings

The API response contains disk drive data filtered and paginated per the input parameters and options. If 'Return All' is true, pagination parameters control fetching all pages accordingly. Enabling 'Debug' adds detailed HTTP request info to the output under a debug key for troubleshooting.

Examples

Example 1: Get a single page of disk drive records with default pagination settings

Set 'Return All' to false or leave unset, optionally specify filters like 'Df' or 'Ts' in Additional Fields; leave options default.

Example 2: Retrieve all disk drive records with custom page size and cursor-based pagination

Set 'Return All' to true, provide 'Page Size' in Additional Fields, configure 'Pagination' to use 'Cursor-Based' mode with proper cursor parameter names.

Links

Discussion