Hi Alejandro.
I'm not sure the following is the adequate for your case though.
How about trying 'manageAppHost proxy...' command to the AppHost where REST API function runs. It can configure http proxy(--http-proxy-url), https proxy(--https-proxy-url) and no_proxy(--no-proxy). You can configure the IPs which do not require proxy settings with no proxy.
ex.)
sudo manageAppHost proxy --http-proxy-url=<your-proxy-host> --https-proxy-url=<your-proxy-host> --no-proxy=localhost,127.0.0.1,<soar-ip>,192.168.10.0/24
Be warned that configuration change on the apphost wide might affect other functions.
For references:
- https://github.com/ibmresilient/resilient-python-api/blob/main/docs/pages/resilient-lib/resilient-lib.rst