We never seem to get anything other than us3. And couldn't find a correlation with us-central1-a, b, etc. Thanks anyway Vinny.
Miguel Vitorino On 22 July 2014 20:05, Miguel Vitorino <[email protected]> wrote: > Thanks Vinny, I didn't know and will definitely take a look at that. > On 22 Jul 2014 05:56, "Vinny P" <[email protected]> wrote: > >> 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 a topic in the >> Google Groups "Google App Engine" group. >> To unsubscribe from this topic, visit >> https://groups.google.com/d/topic/google-appengine/xr5W6HvWVFE/unsubscribe >> . >> To unsubscribe from this group and all its topics, 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. >> > -- 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.
