Create a new object tool
Create a new object tool. The server assigns the tool ID and GUID. Requires SYSTEM_ACCESS_MANAGE_TOOLS.
Request body
Tool name
Type of object tool
Tool-specific data (command line, script name, URL template, etc.)
UUID of an existing image library entry; omit or use null UUID for no icon
Bitmask of applicable object classes. Bit 0 (1) = Node, bit 1 (2) = Interface, bit 2 (4) = Sensor, bit 3 (8) = Access point. Defaults are applied if 0 or missing: URL tools default to all classes, others to Node. Non-Node bits are stripped for tool types other than server-script, url and ssh-command.
User and group IDs allowed to execute this tool. Replaces the existing ACL on PUT. Send an empty array to remove all entries.
Response
Object tool created.
Tool ID
Tool name
Type of object tool
Confirmation message shown to user
Full command name
Short command name
Remote port for TCP tunnel
Remote host for TCP tunnel
Bitmask of object classes the tool is applicable to. Bit 0 (1) = Node, bit 1 (2) = Interface, bit 2 (4) = Sensor, bit 3 (8) = Access point. Only server-script and URL tools may include bits other than Node.
Tool-specific data
Tool description
Tool filter (matching OID for SNMP tools)
UUID of the icon image in the image library; absent when no icon is set
User and group IDs allowed to execute this tool. Only present when the caller has SYSTEM_ACCESS_MANAGE_TOOLS rights.