Google App Engine 能否在没有外部 IP 的情况下向同一项目中的 Compute Engine 实例发出 http 请求? [英] Can Google App Engine make a http request to a Compute Engine instance within the same project without an external IP?

查看:19
本文介绍了Google App Engine 能否在没有外部 IP 的情况下向同一项目中的 Compute Engine 实例发出 http 请求?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在 App Engine 中,我想对在同一 Google 云项目中创建的 Compute Engine 实例上运行的 Web 服务器进行 http fetch 调用,我想知道是否可以在不启用的情况下对实例进行此类调用一个外部IP吗?App Engine 和 Compute Engine 实例是否来自同一个项目、在同一个网络中,我可以从 App Engine 按名称调用 Compute Engine 实例吗?

In App Engine I'd like to make http fetch calls to a web server running on an Compute Engine instance, created within the same Google cloud project, and I'm wondering if I can make such calls to the instance without enabling an external IP for it? Are App Engine and Compute Engine instances, from the same project, within the same network and can I call a Compute Engine instance by name from App Engine?

推荐答案

目前不受支持.App Engine 和 GCE 之间的通信必须通过 URLFetch API 并使用公共 IP.

This is currently unsupported. Communication between App Engine and GCE must go through the URLFetch API and use a public IP.

这篇关于Google App Engine 能否在没有外部 IP 的情况下向同一项目中的 Compute Engine 实例发出 http 请求?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆