Hi again
Due to to the issue reported here (Custom fields not updating for used IP) I am trying to code removing an IP node and re-creating it. The remove function works but the create doesn't, I can't find an example of how this should be done but I have taken a guess based on the Python example of adding a node.
Code:
props = {
'IPAddress': ip_address,
}
update_main_repsonse = connect_to_solarwinds.swis.create('IPAM.IPNode', **props)I received an error 400
400 Client Error: Exception has been thrown by the target of an invocation. for url: https://URL-REMOVED:17778/SolarWinds/InformationService/v3/Json/Create/IPAM.IPNode
File "C:\orionsdk-0.3.0\orionsdk\swisclient.py", line 63, in _req
resp.raise_for_status()
File "C:\orionsdk-0.3.0\orionsdk\swisclient.py", line 34, in create
return self._req(
I tried checked the API to see what values need to be sent, but that doesn't seem to help as it just shows the variable types, not the required elements. I'm not having the best experience working with this API to be honest. Documentation is sparse with very few examples available - particularly for python.
http://solarwinds.github.io/OrionSDK/swagger-ui/#/CRUD/CreateIPAMIPNode