except... its already in the base url from the SC i.e. look at the raw service catalog "publicURL": "https:\/\/region-b.geo-1.compute.hpcloudsvc.com\/v2\/<TENANTID>",..  the tenant id and version are already there.. no magic needed.  Unless you are stripping that out.. which why do that?