确定执行UrlFetchApp调用的节点的IP地址

问题描述 投票:3回答:1

对于通过Google Apps脚本中的UrlFetchApp进行的Web API调用,我必须提交HTTP客户端IP(通过HTTP-GET)以进行身份​​验证(namecheap.com API)。

是否有方法确定将执行UrlFetchApp调用以将其添加到查询URL的节点的IP地址?

google-apps-script urlfetch
1个回答
3
投票

不,不可能。但是,Google确实为您提供了用于拨打电话的IP地址范围:

64.18.0.0 - 64.18.15.255
64.233.160.0 - 64.233.191.255
66.102.0.0 - 66.102.15.255
66.249.80.0 - 66.249.95.255
72.14.192.0 - 72.14.255.255
74.125.0.0 - 74.125.255.255
173.194.0.0 - 173.194.255.255
207.126.144.0 - 207.126.159.255
209.85.128.0 - 209.85.255.255
216.239.32.0 - 216.239.63.255

来源:https://developers.google.com/apps-script/guides/jdbc#creating_other_database_connections

© www.soinside.com 2019 - 2024. All rights reserved.