def token_get(profile=None, **connection_args):
 kstone = auth(profile, **connection_args)
 token = kstone.service_catalog.get_token()
 return {'id': token['id'], 'expires': token['expires'], 'user_id': token['user_id'], 'tenant_id': token['tenant_id']}

def token_get ( profile = None , ** connection_args ) : kstone = auth ( profile , ** connection_args ) token = kstone . service_catalog . get_token ( ) return { 'id' : token [ 'id' ] , 'expires' : token [ 'expires' ] , 'user_id' : token [ 'user_id' ] , 'tenant_id' : token [ 'tenant_id' ] }
return the configured tokens cli example: .