AvantGuard - NinjaOne icon

AvantGuard - NinjaOne

AvantGuard - NinjaOne

Actions159

Overview

This node interacts with the AvantGuard NinjaOne system API to retrieve device global custom fields. Specifically, the "Get Device Global Custom Fields" operation fetches custom fields that are globally defined for devices within the system. This is useful when you want to programmatically access metadata or additional attributes assigned to devices, which can be used for reporting, filtering, or automation purposes.

Practical examples include:

  • Pulling all custom fields to display in a dashboard.
  • Using custom field data to trigger workflows based on device attributes.
  • Synchronizing device metadata with other systems.

Properties

Name Meaning
Additional Query Parameters Optional parameters to customize the query. Currently supports:
- Scopes: Comma-separated list of scopes to filter the custom fields. Default is "all,node,location,organization".

Output

The node outputs JSON data containing the device global custom fields retrieved from the NinjaOne API. The structure typically includes details about each custom field such as its name, type, scope, and possibly values or options associated with it.

If the node supports binary data output (not indicated here), it would represent any file or media content returned by the API, but this operation primarily deals with JSON metadata.

Dependencies

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

Troubleshooting

  • Common issues:

    • Authentication failures due to invalid or missing API keys.
    • Incorrect base URL configuration leading to connection errors.
    • Invalid scope values causing empty or error responses.
  • Error messages:

    • 401 Unauthorized: Check that the API key credential is correctly set and has necessary permissions.
    • 404 Not Found: Verify the endpoint URL and resource names.
    • 400 Bad Request: Ensure that query parameters like scopes are valid and properly formatted.

Links and References

Discussion