NXSL:CreateNode

Revision as of 16:13, 13 September 2022 by AlexKirhenshtein (talk | contribs) (Text replacement - "^" to "{{deprecated}}")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
This Wiki is deprecated and we are are currrently migrating remaining pages into product documentation (Admin Guide, NXSL Guide)

Create node object.

Since: 1.2.7

Syntax

CreateNode(parent, name, primaryHostName);


Parameters

parent Parent object. Can be either container or infrastructure services root. Reference to parent object can be obtained using FindObject function.
name Name for new node object.
primaryHostName primary host name for new node object. Must be valid IP address or resolvable host name.


Return Value

Reference to newly created object.


Examples

 CreateNode(FindObject(2), "SERVER", "10.10.10.1");    // Create node directly under "Infrastructure Services"