def hostinterface_get(hostids, **connection_args):
 conn_args = _login(**connection_args)
 try:
  if conn_args:
   method = 'hostinterface.get'
   params = {'output': 'extend'}
   if hostids:
    params.setdefault('hostids', hostids)
   params = _params_extend(params, **connection_args)
   ret = _query(method, params, conn_args['url'], conn_args['auth'])
   return (ret['result'] if (len(ret['result']) > 0) else False)
  else:
   raise KeyError
 except KeyError:
  return False

def hostinterface_get ( hostids , ** connection_args ) : conn_args = _login ( ** connection_args ) try : if conn_args : method = 'hostinterface.get' params = { 'output' : 'extend' } if hostids : params . setdefault ( 'hostids' , hostids ) params = _params_extend ( params , ** connection_args ) ret = _query ( method , params , conn_args [ 'url' ] , conn_args [ 'auth' ] ) return ( ret [ 'result' ] if ( len ( ret [ 'result' ] ) > 0 ) else False ) else : raise KeyError except KeyError : return False
retrieve host groups according to the given parameters .