I have deployed my app in App Engine using maven (https://cloud.google.com/appengine/docs/flexible/java/using-maven)
How can I programmatically get the URL of the APP? I know it follows this format https://PROJECT_ID.REGION_ID.r.appspot.com. However, I do not know the region Id. If there is no way to get the URL, is there a way to get the region ID?
edit
I found this to be useful for this purpose: https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1/apps/get