When attempting to create a new WMI node I am running into an issue where the node is created but its not receiving a value for the WMICredential field in "Orion.NodeSettings" which I am attempting to update after the node is created with the output of the NodeID I am getting in the return sting. The host shows up under manage hosts, but when you click on edit node properties it returns the exact error below:
So to run through the steps I am taking to get this issue:
1. I pass a JSON string to create the new node: REST to '/SolarWinds/InformationService/v3/Json/Create/Orion.Nodes' with json string {"EntityType":"Orion.Nodes", "IPAddress":"'+ip+'", "IPAddressGUID":"nnnnnnnn-0000-0000-0000-000000000000", "Caption":"'+newHostname+'", "DynamicIP": false, "EngineID": 2, "Status": 0, "UnManaged": false, "Allow64BitCounters": false, "SysObjectID": "", "MachineType": "", "VendorIcon": "", "ObjectSubType": "WMI"}
2. Grab the NodeID from the json API return and pass it to the "Node.NodeSettings"
3. Update the "Node.NodeSettings" value for "WMICredntial": REST to '/SolarWinds/InformationService/v3/Json/swis://orion/Orion/Orion.NodeSettings'; with json sting '{"EntityType":"Orion.NodeSettings", "NodeID":"11006" "SettingName":"WMICredential", "SettingValue": 22}'
4. Result is 200. Which would lead me to believe that field is being updated, but the error still exists.
Could anyone point me in the right direction of updating that "WMICredential" value for the specific Node after its been created?
I've looked at a few different threads but this one had some good info it and its where I got the idea of updating the node after its been created >> Create node with credential set
This is the document that points out the WMICredential value is missing which is causing the issue >> Given key is not present in the dictionary - SolarWinds Worldwide, LLC. Help and Support
Thanks!