Hi,I am struggeling with API requests to a Fortigate (Version 7.0.15). I
used instructions from FNDN and got curl requests working as expected
but the same request in python just throws a 401.The python code: url =
'https://fortigate/api/v2/cmdb/fire...
Ok this is kind of embarrassing: I was developing a Fortimanager API
script a few weeks ago. For that, I was using a .netrc file to
authenticate. From the Python request module documentation:"If no
authentication method is given with the auth argumen...
Ok got it: After reviewing the requests documentation at
https://requests.readthedocs.io/en/latest/user/authentication/, I
defined an auth class I found on Stackoverflow at
https://stackoverflow.com/questions/29931671/making-an-api-call-in-python-wit...