Skip to content

Latest commit

 

History

History
41 lines (31 loc) · 864 Bytes

createnode.adoc

File metadata and controls

41 lines (31 loc) · 864 Bytes

CreateNode()

Note
This function is enabled by default, but can be disabled by setting configuration parameter "NXSL.EnableContainerFunctions".
Important

Deprecated in 5.0.

Please use createNode() method of NetObj class instead.

CreateNode(parent, name, primaryHostName, zoneUIN) => Node

Create node object.

Table 1. Parameters

parent

[class-netobj]

Parent object

name

String

Name for new node

primaryHostName

String

Primary host name for new node (optional)

zoneUIN

Integer

zone UIN (optional)

Return

New node object or null on failure

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