On Mon, Jul 21, 2014 at 7:00 AM, Miguel Vitorino <[email protected]>
 wrote:

> How is possible to know the current Zone (as in: us-central1-a, b, f)
> where an AppEngine application is currently running?
> Cloud SQL allows us to specify that its location should follow an
> AppEngine app, but for general GCE instances there isn't a similar option
> (since they obviously aren't managed so static to one zone...)
>


Some runtimes (I'm not sure if all runtimes support this) can supply a name
of the hosting datacenter. For example, in Go you can call
appengine.Datacenter()
<https://developers.google.com/appengine/docs/go/reference#Datacenter> and
get back a string similar to *us3*.


-----------------
-Vinny P
Technology & Media Consultant
Chicago, IL

App Engine Code Samples: http://www.learntogoogleit.com

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/google-appengine.
For more options, visit https://groups.google.com/d/optout.

Reply via email to