Skip to content

Latest commit

 

History

History
38 lines (30 loc) · 1.08 KB

bindobject.adoc

File metadata and controls

38 lines (30 loc) · 1.08 KB

BindObject()

Important

Deprecated in 3.0.

Please use bind() or bindTo() methods of NetObj class instead.

Note
This function is enabled by default, but can be disabled by setting configuration parameter "NXSL.EnableContainerFunctions".
BindObject(parent, child) => void

Bind all NetXMS objects that can be bound from console (nodes, subnets, clusters, and another containers) to container objects.

Table 1. Parameters

parent

Parent object ([class-netobj] referring to container object or infrastructure service root).

child

The NetXMS object to be linked to given parent object ([class-node] or [class-netobj] referring to subnet, container, or cluster).

Return

None.

Example
BindObject(FindObject(2), $node);    // Link current node directly to "Infrastructure Services"
BindObject(FindObject("Services"), FindObject("Service_1"));    // Link object named "Service_1" to container "Services"