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

AssetRelationships → Get all asset relationships

AI-generated

Summary

Retrieve all asset relationship records from the NinjaOne IT asset management API with support for pagination, filtering, and custom request options.

Inputs

  • Return All — Boolean flag to determine if all results should be returned or just a single page.
  • Additional Fields — Optional parameters including 'Type' to filter by relationship type, 'After' and 'Before' cursors for pagination, and 'Page Size' to specify number of items per page.
  • Options — Allows specifying custom JSON body to merge with parameters, custom HTTP headers, query-string filters, batching options for request grouping and delays, debug mode to include request details in output, pagination configuration including mode (offset, cursor, URL), page parameters, page size, maximum pages, and request delay, and request timeout in milliseconds.

Output shape

a list of asset relationship records

The output shape is a list of asset relationships returned by the NinjaOne /v2/itam/asset-relationship/relations endpoint. Pagination behavior is governed by the 'Return All' flag and pagination settings. When debug is enabled, additional debug information is included. Custom headers and query filters can affect the request and its results. Batching applies when processing multiple input items.

Links

Discussion