NetXMS icon

NetXMS

Interact with the NetXMS network monitoring and management system

Event Template → Get

AI-generated

Summary

Fetches a single NetXMS event template by its numeric event code. Sends a GET to /v1/event-templates/{eventCode} and returns the server's JSON for that template.

Inputs

  • Event Code (required) — Numeric event code of the template to retrieve. It is inserted into the request path. Defaults to 0.

Output shape

One output item per input item, containing the event template record as returned by the NetXMS REST API.

The node logs in with the NetXMS credentials on each run to obtain a session token. If the API returns an array, it is split into multiple items. With Continue On Fail enabled, a failed item (such as an unknown event code) returns {error: message} instead of stopping the workflow. The exact fields of the template are not defined in the node source.

Examples

Example 1: Look up the definition of a known event before editing it

Resource: Event Template; Operation: Get; Event Code: 100001

Example 2: Fetch templates dynamically for event codes coming from earlier nodes

Resource: Event Template; Operation: Get; Event Code: expression {{ $json.eventCode }}

Links

Discussion