Hi,
I'm working on a project to script the creation of Nodes in Orion. I have everything worked out with REST calls, except for adding the Asset Inventory. I create the Asset Inventory poller with
$body =
@"
{
"PollerType":"N.Asset.Inventory.Wmi.Generic",
"NetObject":"N:$($NodeID)",
"NetObjectType":"N",
"NetObjectID":"$($NodeID)"
}
Invoke-RestMethod -Credential $cred -Uri "https://$($orionComputerName):17778/SolarWinds/InformationService/v3/Json/Create/Orion.Pollers" -ContentType "Application/json" -Body $body -Method POST
That creates the Asset Inventory Poller and I can see it in SWQL the same way one would see it as if the Asset Inventory were added from the UI. However, I can't seem to get the node added to the AssetInventory_Polling Table, which seems like is the place that the node has to be for it have the Asset Inventory actually functional in the UI.
Am I missing something? Has anyone had any experience with this? I've done a lot of searching on the subject, but haven't come up with much.
Thanks everyone!