I'm looking to add an alert when a new node is created which is not particularly difficult using a "Node Event". However, I want that node to be automatically unmanaged. Is there an alert action that could be executed to set the node to unmanaged?
In case you want each created node to by automatically unmanaged, you can do it by alerting via event "Node Created"
And as trigger action you must us PowerShell script which via Orion SDK unmanage this node.
I think you'd have to use a SWQL action
Alert action -> custom script -> unmanage.ps1
The format of the script would be basically ConnectSWIS then invoke SWISverb Unmanage.
The unmanage command needs 4 values
Not sure what isRelative does, but it's a true/false value so you could only go wrong once. There's definitely some examples scattered about here somewhere or on github or something.
I'm trying to implement this but for the life of me I cannot find any kind of data point that tells me a new node has been discovered. I would have expected to find an event, or a "firstDiscovered" datetime stamp somewhere?
Thank you, not sure how I missed that Event.