Use this API to fetch filtered set of event resources.
filter string should be in JSON format.eg: "vm_state:DOWN,name:[a-z]+"
2290
public static event[] get_filtered(nitro_service service, String filter) throws Exception
	{
		event obj = new event();
		options option = new options();
		option.set_filter(filter);
		event[] response = (event[]) obj.getfiltered(service, option);
		return response;
	}
431141
public static systembackup[] get_filtered(nitro_service service, String filter) throws Exception{
		systembackup obj = new systembackup();
		options option = new options();
		option.set_filter(filter);
		systembackup[] response = (systembackup[]) obj.getfiltered(service, option);
		return response;
	}
314120
public static appflowcollector[] get_filtered(nitro_service service, String filter) throws Exception{
		appflowcollector obj = new appflowcollector();
		options option = new options();
		option.set_filter(filter);
		appflowcollector[] response = (appflowcollector[]) 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;
	}
893956
public static xen_health_resource[] get_filtered(nitro_service service, filtervalue[] filter) throws Exception
	{
		xen_health_resource obj = new xen_health_resource();
		options option = new options();
		option.set_filter(filter);
		xen_health_resource[] response = (xen_health_resource[]) obj.getfiltered(service, option);
		return response;
	}
500506
public static managed_device[] get_filtered(nitro_service service, String filter) throws Exception
	{
		managed_device obj = new managed_device();
		options option = new options();
		option.set_filter(filter);
		managed_device[] response = (managed_device[]) obj.getfiltered(service, option);
		return response;
	}
1291131
public static servicegroup[] get_filtered(nitro_service service, String filter) throws Exception{
		servicegroup obj = new servicegroup();
		options option = new options();
		option.set_filter(filter);
		servicegroup[] response = (servicegroup[]) obj.getfiltered(service, option);
		return response;
	}
113945
public static policydataset[] get_filtered(nitro_service service, String filter) throws Exception{
		policydataset obj = new policydataset();
		options option = new options();
		option.set_filter(filter);
		policydataset[] response = (policydataset[]) 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;
	}
1356374
public static vrid6[] get_filtered(nitro_service service, String filter) throws Exception{
		vrid6 obj = new vrid6();
		options option = new options();
		option.set_filter(filter);
		vrid6[] response = (vrid6[]) obj.getfiltered(service, option);
		return response;
	}
890326
public static mps[] get_filtered(nitro_service service, String filter) throws Exception
	{
		mps obj = new mps();
		options option = new options();
		option.set_filter(filter);
		mps[] response = (mps[]) obj.getfiltered(service, option);
		return response;
	}
816468
public static snmpalarm[] get_filtered(nitro_service service, String filter) throws Exception{
		snmpalarm obj = new snmpalarm();
		options option = new options();
		option.set_filter(filter);
		snmpalarm[] response = (snmpalarm[]) obj.getfiltered(service, option);
		return response;
	}
367341
def get_resources_vms(call=None, resFilter=None, includeConfig=True):
    '''
    
    '''

    timeoutTime = time.time() + 60
    while True:
        log.debug('Getting resource: vms.. (filter: %s)', resFilter)
        resources = query('get', 'cluster/resources')
        ret = {}
        badResource = False
        for resource in resources:
            if 'type' in resource and resource['type'] in ['openvz', 'qemu',
                                                           'lxc']:
                try:
                    name = resource['name']
                except KeyError:
                    badResource = True
                    log.debug('No name in VM resource %s', repr(resource))
                    break

                ret[name] = resource

                if includeConfig:
                    # Requested to include the detailed configuration of a VM
                    ret[name]['config'] = get_vmconfig(
                        ret[name]['vmid'],
                        ret[name]['node'],
                        ret[name]['type']
                    )

        if time.time() > timeoutTime:
            raise SaltCloudExecutionTimeout('FAILED to get the proxmox '
                                            'resources vms')

        # Carry on if there wasn't a bad resource return from Proxmox
        if not badResource:
            break

        time.sleep(0.5)

    if resFilter is not None:
        log.debug('Filter given: %s, returning requested '
                  'resource: nodes', resFilter)
        return ret[resFilter]

    log.debug('Filter not given: %s, returning all resource: nodes', ret)
    return ret
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;
	}
871065
public static filterpolicy[] get(nitro_service service) throws Exception{
		filterpolicy obj = new filterpolicy();
		filterpolicy[] response = (filterpolicy[])obj.get_resources(service);
		return response;
	}
943894
public static filteraction[] get_filtered(nitro_service service, String filter) throws Exception{
		filteraction obj = new filteraction();
		options option = new options();
		option.set_filter(filter);
		filteraction[] response = (filteraction[]) obj.getfiltered(service, option);
		return response;
	}
28238
public static syslog_server[] get_filtered(nitro_service service, filtervalue[] filter) throws Exception
	{
		syslog_server obj = new syslog_server();
		options option = new options();
		option.set_filter(filter);
		syslog_server[] response = (syslog_server[]) obj.getfiltered(service, option);
		return response;
	}