- FindNodeObject(currentNode, key): [class-node]
-
Look up [class-node] object by either name or object id, will return
nullif object not found or not accessible. This function search for nodes only.If trusted node validation is enforced,
currentNodeshould point to execution context object (instance of [class-netobj],$nodein most cases). If trusted nodes are disabled (default server configuration),currentNodecan be set tonull.Table 1. Parameters currentNode
Lookup context or
nullif trusted nodes validation is disabled.key
Object name of id.
ReturnInstance of [class-node] object or
nullif not found or not accessible.>>> FindNodeObject($node, "server.netxms.org") object >>> FindNodeObject(null, 12) object >>> FindNodeObject($node, "bad_node_name") NULL