NinjaOne icon

NinjaOne

Consume NinjaOne API

Actions158

Devices → Get Device Active Jobs

AI-generated

Overview

This node interacts with the NinjaOne API to retrieve active jobs for a specified device. It is useful in IT management and monitoring scenarios where you need to track ongoing tasks or jobs running on devices managed by NinjaOne. For example, an IT administrator can use this node to fetch all active maintenance or deployment jobs currently assigned to a particular device, enabling real-time monitoring and automation of workflows based on job status.

Properties

Name Meaning
Id Device identifier (number). Specifies which device's active jobs to retrieve.
Lang Language tag (string). Optional parameter to specify the language for returned data.
Tz Time Zone (string). Optional parameter to specify the time zone context for date/time fields in the response.

Output

The node outputs JSON data containing the list of active jobs for the specified device. The structure corresponds to the NinjaOne API response for active jobs on a device, typically including details such as job IDs, statuses, start times, and other relevant metadata about each active job.

No binary data output is produced by this operation.

Dependencies

  • Requires an API authentication token configured via OAuth2 credentials for NinjaOne.
  • The node uses NinjaOne's REST API endpoints to fetch data.
  • Proper network access to NinjaOne API endpoints is necessary.

Troubleshooting

  • Missing or invalid device ID: Ensure the "Id" property is set correctly and corresponds to an existing device in NinjaOne.
  • Authentication errors: Verify that the OAuth2 credential is valid and has sufficient permissions to access device job information.
  • Empty or unexpected responses: Check if the device actually has active jobs; otherwise, the response may be empty.
  • Network issues: Confirm connectivity to the NinjaOne API endpoint.
  • Error messages from API: These will be surfaced in the node output if "Continue On Fail" is enabled; otherwise, they will cause the workflow to error out. Common errors include unauthorized access, resource not found, or rate limiting.

Links and References

Discussion