SNMP Trap Mappings

Create SNMP trap mapping

Create a new SNMP trap mapping. Requires CONFIGURE_TRAPS system access right. If eventCode is not provided, trap is mapped to SNMP_UNMATCHED_TRAP event.

post/v1/snmp-trap-mappings

Request body

oidstring required

Trap OID in dotted notation.

eventCodeinteger

Code of the event generated for matching trap (must refer to existing event template).

eventTagstring nullable

Tag added to generated event.

descriptionstring

Trap mapping description.

transformationScriptstring

NXSL transformation script source.

Response

SNMP trap mapping created successfully.

idinteger

SNMP trap mapping ID.

guidstring uuid

SNMP trap mapping GUID.

oidstring

Trap OID. Traps are matched by exact OID or by longest matching OID prefix.

eventCodeinteger

Code of the event generated for matching trap.

eventTagstring nullable

Tag added to generated event.

descriptionstring

Trap mapping description.

transformationScriptstring

NXSL transformation script source.

Changes

Changed in 1 of the 128 revisions of this API.1