I try this code but got that error, "Entity Orion.AssetInventory.Polling does not contain any key properties. Parameter name: entityType"
swis.Create("Orion.AssetInventory.Polling", new PropertyBag
Programmatically configuring Asset Inventory is not supported right now. We have an internal ticket to add it as a feature. The ticket number is 348041 if you want to check on status in the future.
As of the 2020.2 release there are PollNow, EnablePollingForNodes, and DisablePollingForNodes verbs on Orion.AssetInventory.Polling:
How about now? This is exactly what I'm looking for on a project I'm running or is ticket number 348041 still quietly accumulating dust? I'm actually attempting to use the REST API as opposed to SWIS, if it makes any difference.
The fastest way to enable asset inventory in mass is to create a discovery job on all the nodes you want it enabled on. This will delete historical data but will enable the option as long as the target device is communicating with something other than ICMP.
SolarWinds solutions are rooted in our deep connection to our user base in the THWACK® online community. More than 150,000 members are here to solve problems, share technology and best practices, and directly contribute to our product development process.