Hello,
after a while I got back to my python code for sending query to orion API. Out of the blue, it stopped working and code returns this error:
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='our_server_ip', port=17774): Max retries exceeded with url: /SolarWinds/InformationService/v3/Json/Query (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa4a2e66c50>: Failed to establish a new connection: [Errno 111] Connection refused'))
Code basically just creates client and sends one query:
swiss_client = orionsdk.SwisClient(hostname=sw_instance, username=self.username, password=self.password)
alert_hostdown = swiss_client.query(query=env.SW.query_get_lan_down)
When I test it in SWQL studio with the same username, password and query, it works. Orionsks was install with: pip install orionsdk (it installs version 0.4.0).
thank you very much for any help.
M.