[英]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.