Verify/change application region at Google App Engine

前端 未结 3 828
忘了有多久
忘了有多久 2020-12-10 11:21

I\'m creating a GAE application.

When I set my GAE PHP application as an authorized application to access my Cloud SQL instance, I get the following warning:

3条回答
  •  渐次进展
    2020-12-10 12:05

    You can get the AppId from the runtime environment:

    Java:

    ApiProxy.getCurrentEnvironment().getAppId()
    

    or Python:

    os.environ['APPLICATION_ID']
    

    where the prefixes as mentioned by @Ilya and @Nikita still apply:

    prefixed with e~ means EU and s~ means US.

    P.S. It looks like both the dev consoles have been updated to get the App ID from elsewhere, so they don't have this prefix.

提交回复
热议问题