FindObjectByGUID
- FindObjectByGUID(guid, currentNode): NetObj
-
Look up any object inherited from NetObj (Node, Interface, Cluster, etc.) by GUID.
If trusted node validation is enforced,
currentNodeshould point to execution context object (instance of NetObj,$nodein most cases). If trusted nodes are disabled (default server configuration),currentNodecan be omitted or set tonull.Table 1. Parameters guid
String
Object GUID.
currentNode
Lookup context or
nullif trusted nodes validation is disabled. Optional parameter.ReturnInstance of object inherited from NetObj or
nullif not found or not accessible. Type of the object can be verified using function classof.node = FindObjectByGUID("d602a7f1-0049-421b-a134-2fcf35712608", $node); if (node != NULL) println(node.name); // Prints node name if node with given GUID is found