def show_key(kwargs=None, call=None):
 if (call != 'function'):
  log.error('The list_keys function must be called with -f or --function.')
  return False
 if (not kwargs):
  kwargs = {}
 if ('keyname' not in kwargs):
  log.error('A keyname is required.')
  return False
 (rcode, data) = query(command='my/keys/{0}'.format(kwargs['keyname']), method='GET')
 return {'keys': {data['name']: data['key']}}

def show_key ( kwargs = None , call = None ) : if ( call != 'function' ) : log . error ( 'The list_keys function must be called with -f or --function.' ) return False if ( not kwargs ) : kwargs = { } if ( 'keyname' not in kwargs ) : log . error ( 'A keyname is required.' ) return False ( rcode , data ) = query ( command = 'my/keys/{0}' . format ( kwargs [ 'keyname' ] ) , method = 'GET' ) return { 'keys' : { data [ 'name' ] : data [ 'key' ] } }
list the keys available .