Quantcast
Channel: THWACK: All Content - Orion SDK
Viewing all articles
Browse latest Browse all 2677

Only nodes can be unmanaged through this interface. does not refer to a node.

$
0
0

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: https://solarwinds-orion:17778/SolarWinds/InformationService/v3/Json/Invoke/Orion.Nodes/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.


Viewing all articles
Browse latest Browse all 2677

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>