def event_fire(consul_url=None, name=None, **kwargs):
 ret = {}
 query_params = {}
 if (not consul_url):
  consul_url = _get_config()
  if (not consul_url):
   log.error('No Consul URL found.')
   ret['message'] = 'No Consul URL found.'
   ret['res'] = False
   return ret
 if (not name):
  raise SaltInvocationError('Required argument "name" is missing.')
 if ('dc' in kwargs):
  query_params = kwargs['dc']
 if ('node' in kwargs):
  query_params = kwargs['node']
 if ('service' in kwargs):
  query_params = kwargs['service']
 if ('tag' in kwargs):
  query_params = kwargs['tag']
 function = 'event/fire/{0}'.format(name)
 res = _query(consul_url=consul_url, query_params=query_params, method='PUT', function=function)
 if res['res']:
  ret['res'] = True
  ret['message'] = 'Event {0} fired.'.format(name)
  ret['data'] = ret['data']
 else:
  ret['res'] = False
  ret['message'] = 'Cloning ACLitem {0} failed.'.format(kwargs['name'])
 return ret

def event_fire ( consul_url = None , name = None , ** kwargs ) : ret = { } query_params = { } if ( not consul_url ) : consul_url = _get_config ( ) if ( not consul_url ) : log . error ( 'No Consul URL found.' ) ret [ 'message' ] = 'No Consul URL found.' ret [ 'res' ] = False return ret if ( not name ) : raise SaltInvocationError ( 'Required argument "name" is missing.' ) if ( 'dc' in kwargs ) : query_params = kwargs [ 'dc' ] if ( 'node' in kwargs ) : query_params = kwargs [ 'node' ] if ( 'service' in kwargs ) : query_params = kwargs [ 'service' ] if ( 'tag' in kwargs ) : query_params = kwargs [ 'tag' ] function = 'event/fire/{0}' . format ( name ) res = _query ( consul_url = consul_url , query_params = query_params , method = 'PUT' , function = function ) if res [ 'res' ] : ret [ 'res' ] = True ret [ 'message' ] = 'Event {0} fired.' . format ( name ) ret [ 'data' ] = ret [ 'data' ] else : ret [ 'res' ] = False ret [ 'message' ] = 'Cloning ACLitem {0} failed.' . format ( kwargs [ 'name' ] ) return ret
list the acl tokens .