I've searched for similar questions here on Stackoverflow but they didn't give an answer.
I make a UrlFetchApp.fetch(url) request to some api service, but the service probably bans this requesting IP. I need to whitelist it. I know there are lots of IPs which google apps use, but for now I need to determine at lease this one which is used for this specific call.
I tried this script to figure out the requests:
function getR(){
var url = 'https://my.APIENDPOINTURL'
req = UrlFetchApp.getRequest(url, options)
Logger.log(req)
resp = UrlFetchApp.fetch(url, options)
Logger.log(resp)
}
And it gives me this log:
Why does it show my real IP?
What's going on under the hood? I expected the real IP with UrlFetchApp uses in .getRequests() output. Am I missing something?
Are there any tricks of knowing which IP does UrlFetchApp use? I know that there is no this functionality as a native function.