1 Reply Latest reply on Aug 15, 2017 3:30 PM by jcauburn

    node ipaddress update via python / swis

    fellowsm

      Hello, I'm trying to change a nodes IPAddress via some python code via SWIS, but get error 400 saying the property is not navigable does this mean it CANT be updated or that I'm calling it incorrectly ?

       

      I'm doing this update after getting the URI, is there a different method to update the ipaddress ?

       

      swis.update(uri + '/IPAddress',IPAddress='172.29.111.3')

       

      Traceback (most recent call last):

        File "C:\Users\073563\AppData\Local\Programs\Python\Python36-32\ipaddresschange.py", line 44, in <module>

          main()

        File "C:\Users\073563\AppData\Local\Programs\Python\Python36-32\ipaddresschange.py", line 37, in main

          swis.update(uri + '/IPAddress',IPAddress='172.29.111.3')

        File "C:\Users\073563\AppData\Local\Programs\Python\Python36-32\lib\site-packages\orionsdk\swisclient.py", line 40, in update

          self._req("POST", uri, properties)

        File "C:\Users\073563\AppData\Local\Programs\Python\Python36-32\lib\site-packages\orionsdk\swisclient.py", line 59, in _req

          resp.raise_for_status()

        File "C:\Users\073563\AppData\Local\Programs\Python\Python36-32\lib\site-packages\requests\models.py", line 909, in raise_for_status

          raise HTTPError(http_error_msg, response=self)

      requests.exceptions.HTTPError: 400 Client Error: Property 'IPAddress' is not navigable.

      Parameter name: uri for url: https://10.39.1.51:17778/SolarWinds/InformationService/v3/Json/swis://OSSORN.oss.local/Orion/Orion.Nodes/NodeID=4345/IPAddress

      Mike