def do_endpoints(cs, args):
 catalog = cs.client.service_catalog.catalog
 for e in catalog['access']['serviceCatalog']:
  utils.print_dict(e['endpoints'][0], e['name'])

def do_endpoints ( cs , args ) : catalog = cs . client . service_catalog . catalog for e in catalog [ 'access' ] [ 'serviceCatalog' ] : utils . print_dict ( e [ 'endpoints' ] [ 0 ] , e [ 'name' ] )
discover endpoints that get returned from the authenticate services .