Use this API to fetch filtered set of fis resources.
filter string should be in JSON format.eg: "port:80,servicetype:HTTP".
357870
public static fis[] get_filtered(nitro_service service, String filter) throws Exception{
		fis obj = new fis();
		options option = new options();
		option.set_filter(filter);
		fis[] response = (fis[]) obj.getfiltered(service, option);
		return response;
	}
71133
public static xen_health_sr[] get_filtered(nitro_service service, String filter) throws Exception
	{
		xen_health_sr obj = new xen_health_sr();
		options option = new options();
		option.set_filter(filter);
		xen_health_sr[] response = (xen_health_sr[]) obj.getfiltered(service, option);
		return response;
	}
1197482
public static nsip[] get_filtered(nitro_service service, String filter) throws Exception{
		nsip obj = new nsip();
		options option = new options();
		option.set_filter(filter);
		nsip[] response = (nsip[]) obj.getfiltered(service, option);
		return response;
	}
554266
public static vpnurl[] get_filtered(nitro_service service, String filter) throws Exception{
		vpnurl obj = new vpnurl();
		options option = new options();
		option.set_filter(filter);
		vpnurl[] response = (vpnurl[]) obj.getfiltered(service, option);
		return response;
	}
919783
public static dnsview[] get_filtered(nitro_service service, String filter) throws Exception{
		dnsview obj = new dnsview();
		options option = new options();
		option.set_filter(filter);
		dnsview[] response = (dnsview[]) obj.getfiltered(service, option);
		return response;
	}
1095858
public static netbridge[] get_filtered(nitro_service service, String filter) throws Exception{
		netbridge obj = new netbridge();
		options option = new options();
		option.set_filter(filter);
		netbridge[] response = (netbridge[]) obj.getfiltered(service, option);
		return response;
	}
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;
	}
522003
public static device_profile[] get_filtered(nitro_service service, String filter) throws Exception
	{
		device_profile obj = new device_profile();
		options option = new options();
		option.set_filter(filter);
		device_profile[] response = (device_profile[]) obj.getfiltered(service, option);
		return response;
	}
1367773
public static xen_health_resource_sw[] get_filtered(nitro_service service, String filter) throws Exception
	{
		xen_health_resource_sw obj = new xen_health_resource_sw();
		options option = new options();
		option.set_filter(filter);
		xen_health_resource_sw[] response = (xen_health_resource_sw[]) obj.getfiltered(service, option);
		return response;
	}
753295
public static sslcrl[] get_filtered(nitro_service service, String filter) throws Exception{
		sslcrl obj = new sslcrl();
		options option = new options();
		option.set_filter(filter);
		sslcrl[] response = (sslcrl[]) obj.getfiltered(service, option);
		return response;
	}
960015
public static ftw_events[] get_filtered(nitro_service service, String filter) throws Exception
	{
		ftw_events obj = new ftw_events();
		options option = new options();
		option.set_filter(filter);
		ftw_events[] response = (ftw_events[]) obj.getfiltered(service, option);
		return response;
	}
504428
public static system_settings[] get_filtered(nitro_service service, String filter) throws Exception
	{
		system_settings obj = new system_settings();
		options option = new options();
		option.set_filter(filter);
		system_settings[] response = (system_settings[]) obj.getfiltered(service, option);
		return response;
	}
418820
public static vpntrafficaction[] get_filtered(nitro_service service, String filter) throws Exception{
		vpntrafficaction obj = new vpntrafficaction();
		options option = new options();
		option.set_filter(filter);
		vpntrafficaction[] response = (vpntrafficaction[]) obj.getfiltered(service, option);
		return response;
	}
188614
public static rnat[] get_filtered(nitro_service service, String filter) throws Exception{
		rnat obj = new rnat();
		options option = new options();
		option.set_filter(filter);
		rnat[] response = (rnat[]) obj.getfiltered(service, option);
		return response;
	}
251911
public static ping[] get_filtered(nitro_service service, String filter) throws Exception
	{
		ping obj = new ping();
		options option = new options();
		option.set_filter(filter);
		ping[] response = (ping[]) 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;
}
534123
public static aaasession[] get_filtered(nitro_service service, String filter) throws Exception{
		aaasession obj = new aaasession();
		options option = new options();
		option.set_filter(filter);
		aaasession[] response = (aaasession[]) obj.getfiltered(service, option);
		return response;
	}