I am in the process of writing a script to mute and unmanage nodes from a Linux CLI using the orionsdk-python library.
I am getting very close to being done but just ran across this error.
requests.exceptions.HTTPError: 400 Client Error: Only nodes can be unmanaged through this interface. 1167 does not refer to a node. for url: solarwinds-orion:17778/.../Unmanage
What is strange is that when I print out the results (below) of my query ( uri_query = 'SELECT Caption, NodeID, Uri from Orion.Nodes where Caption=\'' + node + '\'' ), I get the below output which shows that the netObjId I provided IS for a node...
{'results': [{'Caption': '<nodename>', 'NodeID': 1167, 'Uri': 'swis://<server>/Orion/Orion.Nodes/NodeID=1167'}]}
What the weird... Any tips on what I can do to get past this? I tried with a couple of other nodes and they all say the same thing.