I am unable to query SWQL statements using following code, it was working fine till 1st January as we migrated from version 2020.1 to 2024.4. The Python module I am using along with the script and error details are pasted below. Any help to fix this will be appreciated.
Python Module:
orionsdk==0.3.0
Script:
from orionsdk import SwisClient
query_int_bw = """
SELECT NodeID, InterfaceID, Name, Speed, InBandwidth, OutBandwidth, Caption, FullName
FROM Orion.NPM.Interfaces
WHERE InterfaceID IN (467, 988, 1158, 547 , 690, 879, 1062, 677, 1086, 1087, 1173, 1155)
"""
npm_server = '172.29.100.45'
swis = SwisClient(npm_server, username, password)
data_int_bw = swis.query(query_int_bw)
Error:
Traceback (most recent call last):
File "D:\F Drive\Programming\Python\Reseller Utilization Report\Reseller_Network_Report_v3.py", line 362, in <module>
data_int_bw = swis.query(query_int_bw)
^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\Python\Python312\Lib\site-packages\orionsdk\swisclient.py", line 23, in query
return self._req(
^^^^^^^^^^
File "D:\Python\Python312\Lib\site-packages\orionsdk\swisclient.py", line 63, in _req
resp.raise_for_status()
File "D:\Python\Python312\Lib\site-packages\requests\models.py", line 1021, in raise_for_status
raise HTTPError(http_error_msg, response=self)
requests.exceptions.HTTPError: 404 Client Error: Not Found for url: https://172.29.100.45:17778/SolarWinds/InformationService/v3/Json/Query