简体   繁体   English

我位于亚洲的 Google Cloud 功能的美国 IP 地址

[英]US IP address to my Google Cloud functions located in Asia

My service is calling a 3rd party service (binance api) and there is a geo location description for US IP addresses (they banned all US IPs).我的服务正在调用第 3 方服务 (binance api),并且有美国 IP 地址的地理位置描述(他们禁止所有美国 IP)。 My deployment's region set to Tokyo but the 3rd party services still sees that my request is coming from the US.我的部署区域设置为东京,但第 3 方服务仍然看到我的请求来自美国。 Is there any solution to get a local ip address to functions where it is located?是否有任何解决方案可以获取本地 ip 地址到它所在的功能?

You can achieve this requirement by creating a static external IP address in the same region.您可以通过在同一区域中创建静态外部 IP 地址来实现此要求。 To achieve this go through this document which shows how to reserve IP address to a cloud function as it is mentioned clearly what you need to get要实现这一点,请阅读本文档,该文档显示了如何将 IP 地址保留给云功能,因为它清楚地提到了您需要获得的内容

In some cases, you might want traffic originating from your function to be associated with a static IP address.在某些情况下,您可能希望将源自您的函数的流量与静态 IP 地址相关联。 For example, this is useful if you are calling an external service that only allows requests from explicitly specified IP addresses.例如,如果您正在调用仅允许来自明确指定的 IP 地址的请求的外部服务,这将很有用。

For more information you can go through this Thread有关更多信息,您可以浏览此线程

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 如何将动态 IP 地址添加到 Google Cloud 中的“授权 javascript 来源”列表中,以便将 Google 登录集成到我的 web 应用程序中? - How can I add a dynamic IP address to the "Authorised javascript origins" list in Google Cloud so that I can integrate Google sign-in into my web app? 如何将我的 nodejs 库包含在 Google Cloud Functions 中 - How to include my nodejs libraries with Google Cloud Functions 在 Google Cloud 上使用预先创建的静态 IP 地址创建负载均衡器 - Create a Load Balancer with the pre-created static IP address on Google Cloud 如何从我的电脑连接到谷歌云平台中私有 ip 的 sql 实例 - How to connect from my pc to sql instance with private ip in google cloud platform 如何在我的 Cloud-Run Flask 应用程序中获取用户的 IP 地址? - How can I get the user's IP-Address in my Cloud-Run Flask app? TypeScript 种类型,带有 Google Cloud Functions 和 Cloud Events - TypeScript types with Google Cloud Functions and Cloud Events Google Cloud Functions 标头响应 - Google Cloud Functions Headers response 无法部署谷歌云功能 - Unable to deploy google cloud functions 谷歌云功能启用 CORS? - Google Cloud Functions enable CORS? 用于本地开发的 Google Cloud Functions 凭据 - Google Cloud Functions Credentials for Local Development
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM