google-apps-script - 确定执行 UrlFetchApp 调用的节点的 IP 地址

标签 google-apps-script urlfetch

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

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

最佳答案

不,这是不可能的。但是,Google 确实为您提供了一系列 IP 地址,通过这些 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

关于google-apps-script - 确定执行 UrlFetchApp 调用的节点的 IP 地址,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/11708477/

相关文章:

email - 如何将谷歌脚本发件人电子邮件发送到 no-reply@entreprise.com?

javascript - 如何在谷歌表格中制作宏动态?

google-apps-script - 复制文件后获取文档的 URL/ID

python - 使用 urlfetch 使用 JSESSIONID cookie 身份验证时,JIRA REST API 调用失败

python - urlfetch.fetch 在应用引擎中的 html 脚本标记中丢失了内容

google-apps-script - 另一个 Google Apps 脚本 UrlFetchApp 返回未经授权的错误 401

javascript - 使用 find Text() 多次出现时的额外匹配

javascript - 谷歌应用程序脚本中的减去天数将不会反射(reflect)当年的正确更改

google-apps-script - 使用什么 Google Apps 脚本方法来获取重定向的 URL?

python - 请求有效而 URLFetch 无效