UnbindObject()
| This function is enabled by default, but can be disabled by setting configuration parameter "NXSL.EnableContainerFunctions". |
UnbindObject(parent, child): bool
Remove (unbind) object from a container.
parent |
Parent object (NetObj referring to container, collector, facility, power domain, cooling zone, room, or infrastructure service root). |
child |
The NetXMS object to be unlinked from given parent object (Node or NetObj referring to node, subnet, container, or cluster). |
Return
true if the object was unbound, false if the script lacks modify access to either object. Invalid parent object type causes a runtime error.
UnbindObject(FindObject("Services"), FindObject("Service_1")); // Unlink object named "Service_1" from container "Services"