Difference between revisions of "NXSL:BindObject"
Jump to navigation
Jump to search
(Created page with "__NOTOC__ Bind all NetXMS objects that can be bound from console (nodes, subnets, clusters, and another containers) to another NetXMS objects. == Syntax == BindObject(''id'...") |
m (Text replacement - "^" to "{{deprecated}}") |
||
(2 intermediate revisions by one other user not shown) | |||
Line 1: | Line 1: | ||
__NOTOC__ | {{deprecated}}__NOTOC__ | ||
Bind all NetXMS objects that can be bound from console (nodes, subnets, clusters, and another containers) to | Bind all NetXMS objects that can be bound from console (nodes, subnets, clusters, and another containers) to container objects. | ||
'''Since:''' 1.2.0 | |||
== Syntax == | == Syntax == | ||
BindObject('' | BindObject(''parent'', ''child''); | ||
Line 12: | Line 13: | ||
:{| | :{| | ||
|- | |- | ||
| '' | | ''parent'' || Parent object ([[NXSL:NetObj|NetObj]] referring to container object or infrastructure service root). | ||
|- | |- | ||
| '' | | ''child'' || The NetXMS object to be linked to given parent object ([[NXSL:Node|Node]] or [[NXSL:NetObj|NetObj]] referring to subnet, container, or cluster). | ||
|} | |} | ||
Line 20: | Line 21: | ||
== Return Value == | == Return Value == | ||
None. | |||
== Examples == | == Examples == | ||
BindObject(FindObject(2), | <syntaxhighlight lang="c"> | ||
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" | |||
</syntaxhighlight> |
Latest revision as of 18:13, 13 September 2022
This Wiki is deprecated and we are are currrently migrating remaining pages into product documentation (Admin Guide, NXSL Guide) |
Bind all NetXMS objects that can be bound from console (nodes, subnets, clusters, and another containers) to container objects.
Since: 1.2.0
Syntax
BindObject(parent, child);
Parameters
parent Parent object (NetObj referring to container object or infrastructure service root). child The NetXMS object to be linked to given parent object (Node or NetObj referring to subnet, container, or cluster).
Return Value
None.
Examples
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"