def endpoint_get(service, profile=None, **connection_args):
 auth(profile, **connection_args)
 services = service_list(profile, **connection_args)
 if (service not in services):
  return {'Error': 'Could not find the specified service'}
 service_id = services[service]['id']
 endpoints = endpoint_list(profile, **connection_args)
 for endpoint in endpoints:
  if (endpoints[endpoint]['service_id'] == service_id):
   return endpoints[endpoint]
 return {'Error': 'Could not find endpoint for the specified service'}

def endpoint_get ( service , profile = None , ** connection_args ) : auth ( profile , ** connection_args ) services = service_list ( profile , ** connection_args ) if ( service not in services ) : return { 'Error' : 'Could not find the specified service' } service_id = services [ service ] [ 'id' ] endpoints = endpoint_list ( profile , ** connection_args ) for endpoint in endpoints : if ( endpoints [ endpoint ] [ 'service_id' ] == service_id ) : return endpoints [ endpoint ] return { 'Error' : 'Could not find endpoint for the specified service' }
return a specific endpoint cli example: .