i want to use central api connector and i did. When i run the main py program i get invalid --get parameter passed.
I run it from my command line and ..main.py --auth static
i want to use central api connector and i did. When i run the main py program i get invalid --get parameter passed.
I run it from my command line and ..main.py --auth static
Thank you for reaching the community forum,
On your Application, can you share the logs it generates when you encounter this error?
i just get: CRITICAL:root:Invalid --get parameter passed
Hi MW Verkoop ,
We have shared this information to our teams and we'll get back to you as soon as we have an update. Thank you for your patience.
Are you using the API with the Sophos Central Enterprise Dashboard, or Sophos Central Partner Portal?
When trying to replicate this issue I found that the same error is returned unless additional parameters are passed along with the API request.
Try running the following:
python sophos_central_main.py --auth static --get tenants -o stdout
python sophos_central_main.py --auth static --get tenants -o stdout
works but i can't get to work:
python sophos_central_main.py --auth <auth_option> --get inventory --output <output_option> python sophos_central_main.py --auth <auth_option> --get alerts --days <integer: 1-90> --output <output_option> python sophos_central_main.py --auth <auth_option> --get local-sites --output <output_option>
because of:
--output <output_option>
What argument are you specifying for the --output option?
Hi, thanks for the answers,
When I write this query it returns correctly:
python3 sophos_central_main.py --auth static --get inventory
However, I want the results to be displayed in json format by inserting this command, and it does not return anything.
python3 sophos_central_main.py --auth static --get inventory -o json
I await your prompt reply.