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 → RAID drive report

AI-generated

Summary

Retrieve a report of RAID drive statuses by making a GET request to the /v2/queries/raid-drives endpoint, optionally filtering and paginating the results.

Inputs

  • Return All — Boolean flag to specify whether to return all pages of results or just a single page.
  • Additional Fields — Optional filters and pagination controls including device filter ('df'), monitoring timestamp ('ts'), cursor for cursor-based pagination, and page size limit.
  • Options — Additional optional settings such as custom JSON body to merge with default request, custom HTTP headers, query-string filters, batching parameters (items per batch and interval), debug flag, pagination mode and parameters, and request timeout.

Output shape

A JSON object containing RAID drive report data in an array, with pagination metadata if multiple pages are requested.

Supports pagination through offset, cursor, or next URL modes configurable in pagination settings. When 'Return All' is true, automatically fetches all pages. Debug option adds request details to the output for troubleshooting.

Examples

Example 1: Fetch a single page of RAID drive reports with default page size

Return All set to false, Additional Fields and Options left empty.

Example 2: Fetch all RAID drive reports filtered by device and timestamp

Return All set to true, Additional Fields 'df' and 'ts' set to desired filter values.

Links

Discussion