Hi,
Can anyone advise me on how to create and update a device profile in solarwinds with REST API? I am using NPM and NCM for monitoring and inventory scans.
Thanks,
Jinqiang
What do you mean by device profile? A node and its properties or maybe connection profiles in NCM?
Hi mrxinu,
Yes a node and it's properties as well as connection profiles. I am using NPM and NCM in solarwinds, and is planning to use ansible to update the properties remotely. Could be updating connection profiles like changing the protocols or even thresholds.
For that you're going to have to use the verbs that are attached to the Cirrus.Nodes entity in the API. Here they are for reference:
In the case of updating the connection profile you'll need to send along all the settings for the profile in their updated form. The easiest thing is to get the connections first, pull the one out that you want to modify, change the settings you want to be different, and then send that along to the verb with its changes.
To know what that property bag (fancy name for array of things) should look like you can right-click on the verb in SWQL Studio and it'll show you what it should have (in XML, but you get the idea).
All that being said, are you up for some pair programming to nail this down at some point? We could contribute it to SolarWinds's repository when it's done so other folks don't have to work so hard at it.