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

NodeRoles → Get all node roles

AI-generated

Summary

Retrieve a list of node roles from NinjaOne, optionally filtering by assignability and controlling pagination to return all or a single page of results.

Inputs

  • Return All — Boolean flag to choose whether to retrieve all node roles across all pages or only the first page (single page) of results.
  • Is Assignable — Boolean filter to limit results to node roles that are assignable.
  • Options — Additional settings including custom JSON body content to merge into the request, custom HTTP headers, query string filters, batching controls to manage rate limits, debug mode to include request details in output, and pagination configurations such as mode, page/offset parameters, page size, cursor-based controls, maximum pages, and request intervals.

Output shape

a list of node role records

Returns an array of node roles matching the filters and pagination settings. Supports fetching all results with automatic paging or single-page retrieval. Debug option includes detailed request info in the output. Custom headers, query filters, and body fields allow advanced request customization.

Links

Discussion