NinjaOne icon

NinjaOne

Interact with the NinjaOne API

Device → Get Jobs

AI-generated

Overview

The NinjaOne node's 'Get Jobs' operation for the 'Device' resource retrieves job-related information for a specified device using the NinjaOne API. This operation is useful for IT administrators or support teams who want to monitor or audit jobs executed on a device, such as software installations, updates, or maintenance tasks. For example, it can be used to fetch recent job statuses or history for troubleshooting or reporting purposes.

Use Case Examples

  1. Fetch all jobs executed on a device to review their statuses.
  2. Retrieve job history for a device to audit maintenance activities.

Properties

Name Meaning
Device ID The unique identifier of the device for which to retrieve job information.
Request Options Additional settings to customize the API request, including batching, SSL certificate validation, proxy configuration, and request timeout.

Output

JSON

  • jobs - Array of job objects retrieved for the specified device, containing details about each job.

Dependencies

  • NinjaOne API with OAuth2 authentication

Troubleshooting

  • Ensure the Device ID is correct and exists in the NinjaOne system to avoid 'not found' errors.
  • Check network connectivity and proxy settings if requests time out or fail.
  • If SSL certificate errors occur, consider enabling 'Ignore SSL Issues' cautiously.
  • Verify that the OAuth2 credentials are valid and have sufficient permissions to access device job data.

Links

  • NinjaOne API Documentation - Official API documentation for NinjaOne, useful for understanding available endpoints and data structures.

Discussion