AvantGuard - NinjaOne icon

AvantGuard - NinjaOne

AvantGuard - NinjaOne

Actions159

Overview

This node integrates with the AvantGuard NinjaOne API to update the maintenance settings of a specific device. It allows users to specify a maintenance window during which certain device features can be disabled, helping to manage device availability and functionality during planned maintenance periods.

Common scenarios include scheduling downtime for devices to perform updates or repairs without interference from normal operations, or temporarily disabling specific features that might conflict with maintenance tasks.

For example, an IT administrator could use this node to set a maintenance window starting immediately and ending after a few hours, during which remote access or monitoring features are disabled to prevent false alerts or interruptions.

Properties

Name Meaning
Id The unique identifier of the device to update.
Additional Body Fields Optional fields to customize the maintenance update:
- Disabled Features JSON array listing features to disable during maintenance (e.g., monitoring, alerts).
- Start Timestamp (number) indicating when the maintenance window starts; defaults to now if unset.
- End Timestamp (number) indicating when the maintenance window ends.

Output

The node outputs JSON data representing the response from the API after updating the device maintenance settings. This typically includes confirmation details such as the updated maintenance window times and the list of disabled features.

No binary data output is involved.

Dependencies

  • Requires an API key credential for authenticating with the AvantGuard NinjaOne service.
  • Needs the base URL of the NinjaOne API configured in the credentials.
  • Depends on the @avantguardllc/n8n-openapi-node package for OpenAPI integration.

Troubleshooting

  • Invalid Device Id: If the provided device ID does not exist, the API will likely return an error. Verify the device ID before running the node.
  • Incorrect JSON in Disabled Features: The "Disabled Features" field expects valid JSON. Malformed JSON will cause parsing errors. Use proper JSON formatting.
  • Maintenance Window Timing Issues: Ensure that the start and end timestamps are valid Unix epoch numbers and that the end time is after the start time.
  • Authentication Errors: Confirm that the API key credential is correctly set up and has sufficient permissions.
  • Network or API Endpoint Issues: Check connectivity and the correctness of the base URL in credentials.

Links and References

Discussion