[英]Google App Engine Access Cloud Datastore from Different Project
I have been trying to find a solution to accessing a datastore in one project from a different google app engine project. 我一直在尝试找到从另一个Google App Engine项目访问一个项目中的数据存储的解决方案。 I went through the tutorial on accessing a datastore from a different project's compute engine, however, this is not what I am looking for.
我浏览了有关从其他项目的计算引擎访问数据存储的教程,但是,这不是我想要的。 What is required here is accessing a datastore on one project from a different app engine project.
此处需要从另一个App Engine项目访问一个项目上的数据存储。 Has anyone done this successfully?
有人成功做到了吗? Any ideas?
有任何想法吗?
Cheers 干杯
As @Patrice says, this is possible by using the Remote API for Java (or for Python ), which lets you access different App Engine services from any other application, as stated in the documentation. 正如@Patrice所说,可以通过使用Java (或Python )的远程API来实现,该远程API使您可以从任何其他应用程序访问不同的App Engine服务,如文档中所述。
For a more specific information on how to access the Datastore remotely with the Remote API, please take a look at this article from the documentation that explains step by step all the procedure. 有关如何使用Remote API远程访问数据存储区的更具体的信息,请查看文档中的这篇文章 ,其中逐步说明了所有过程。
Please, take into account that if your Google account is configured to use 2-Step Verification , you will need an App Password that authorizes the app to access your account resources. 请注意,如果您的Google帐户配置为使用“ 两步验证” ,则您将需要一个应用密码来授权该应用访问您的帐户资源。
实际上,有一个API可让您从任何地方(甚至从另一个App)调用App Engine服务,只要凭据正常,它就被称为“ 远程API ”
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.