10 Replies Latest reply on Oct 16, 2018 3:10 PM by mesverrum

    Not able to delete a node using Python API

    saloni.rane

      I am able to read data from solarncm but I am not able to delete the node using the following code

       

              self.node_uri = self.con.query("SELECT IPAddress, Caption, Uri FROM Orion.Nodes WHERE IPAddress = @ip_addr", ip_addr = ip_addr)

              print (self.node_uri)

              if self.node_uri is not False:

                  self.con.delete(self.node_uri['results'][0]['Uri'])   #not able to delete node

       

      Could somebody please help?