Use this API to fetch filtered set of lbroute resources.
filter string should be in JSON format.eg: "port:80,servicetype:HTTP".
7701
public static lbroute[] get_filtered(nitro_service service, String filter) throws Exception{
		lbroute obj = new lbroute();
		options option = new options();
		option.set_filter(filter);
		lbroute[] response = (lbroute[]) obj.getfiltered(service, option);
		return response;
	}
37332
public static lbwlm_lbvserver_binding[] get_filtered(nitro_service service, String wlmname, filtervalue[] filter) throws Exception{
		lbwlm_lbvserver_binding obj = new lbwlm_lbvserver_binding();
		obj.set_wlmname(wlmname);
		options option = new options();
		option.set_filter(filter);
		lbwlm_lbvserver_binding[] response = (lbwlm_lbvserver_binding[]) obj.getfiltered(service, option);
		return response;
	}
975376
public static nsconnectiontable[] get_filtered(nitro_service service, String filter) throws Exception{
		nsconnectiontable obj = new nsconnectiontable();
		options option = new options();
		option.set_filter(filter);
		nsconnectiontable[] response = (nsconnectiontable[]) obj.getfiltered(service, option);
		return response;
	}
282582
public static route[] get_filtered(nitro_service service, String filter) throws Exception{
		route obj = new route();
		options option = new options();
		option.set_filter(filter);
		route[] response = (route[]) obj.getfiltered(service, option);
		return response;
	}
349311
public static dnsaction[] get_filtered(nitro_service service, String filter) throws Exception{
		dnsaction obj = new dnsaction();
		options option = new options();
		option.set_filter(filter);
		dnsaction[] response = (dnsaction[]) obj.getfiltered(service, option);
		return response;
	}
441414
public static nspbr[] get_filtered(nitro_service service, String filter) throws Exception{
		nspbr obj = new nspbr();
		options option = new options();
		option.set_filter(filter);
		nspbr[] response = (nspbr[]) obj.getfiltered(service, option);
		return response;
	}
1192769
public static lbpersistentsessions[] get_filtered(nitro_service service, String filter) throws Exception{
		lbpersistentsessions obj = new lbpersistentsessions();
		options option = new options();
		option.set_filter(filter);
		lbpersistentsessions[] response = (lbpersistentsessions[]) obj.getfiltered(service, option);
		return response;
	}
242700
public static gslbsite[] get_filtered(nitro_service service, String filter) throws Exception{
		gslbsite obj = new gslbsite();
		options option = new options();
		option.set_filter(filter);
		gslbsite[] response = (gslbsite[]) obj.getfiltered(service, option);
		return response;
	}
1358495
public static vpnnexthopserver[] get_filtered(nitro_service service, String filter) throws Exception{
		vpnnexthopserver obj = new vpnnexthopserver();
		options option = new options();
		option.set_filter(filter);
		vpnnexthopserver[] response = (vpnnexthopserver[]) obj.getfiltered(service, option);
		return response;
	}
836843
public static policystringmap[] get_filtered(nitro_service service, String filter) throws Exception{
		policystringmap obj = new policystringmap();
		options option = new options();
		option.set_filter(filter);
		policystringmap[] response = (policystringmap[]) obj.getfiltered(service, option);
		return response;
	}
397890
public static policyhttpcallout[] get_filtered(nitro_service service, String filter) throws Exception{
		policyhttpcallout obj = new policyhttpcallout();
		options option = new options();
		option.set_filter(filter);
		policyhttpcallout[] response = (policyhttpcallout[]) obj.getfiltered(service, option);
		return response;
	}
1280118
function filter (resources, req) {
  util.debug("There are %d resources in %s", resources.length, req.path);

  if (resources.length > 0) {
    // If there are query params, then filter the collection by them
    let queryParams = _.filter(req.swagger.params, { in: "query" });
    if (queryParams.length > 0) {
      // Build the filter object
      let filterCriteria = { data: {}};
      queryParams.forEach((param) => {
        if (req.query[param.name] !== undefined) {
          setDeepProperty(filterCriteria.data, param.name, req.query[param.name]);
        }
      });

      if (!_.isEmpty(filterCriteria.data)) {
        // Filter the collection
        util.debug("Filtering resources by %j", filterCriteria.data);
        resources = _.filter(resources, filterCriteria);
        util.debug("%d resources matched the filter criteria", resources.length);
      }
    }
  }

  return resources;
}
502335
public static lbmonbindings_service_binding[] get_filtered(nitro_service service, String monitorname, String filter) throws Exception{
		lbmonbindings_service_binding obj = new lbmonbindings_service_binding();
		obj.set_monitorname(monitorname);
		options option = new options();
		option.set_filter(filter);
		lbmonbindings_service_binding[] response = (lbmonbindings_service_binding[]) obj.getfiltered(service, option);
		return response;
	}
700716
public static dnsaction64[] get_filtered(nitro_service service, String filter) throws Exception{
		dnsaction64 obj = new dnsaction64();
		options option = new options();
		option.set_filter(filter);
		dnsaction64[] response = (dnsaction64[]) obj.getfiltered(service, option);
		return response;
	}
447676
public static gslbvserver[] get_filtered(nitro_service service, String filter) throws Exception{
		gslbvserver obj = new gslbvserver();
		options option = new options();
		option.set_filter(filter);
		gslbvserver[] response = (gslbvserver[]) obj.getfiltered(service, option);
		return response;
	}
1102327
public static dnsaaaarec[] get_filtered(nitro_service service, String filter) throws Exception{
		dnsaaaarec obj = new dnsaaaarec();
		options option = new options();
		option.set_filter(filter);
		dnsaaaarec[] response = (dnsaaaarec[]) obj.getfiltered(service, option);
		return response;
	}
431707
public static ntpserver[] get_filtered(nitro_service service, String filter) throws Exception{
		ntpserver obj = new ntpserver();
		options option = new options();
		option.set_filter(filter);
		ntpserver[] response = (ntpserver[]) obj.getfiltered(service, option);
		return response;
	}