Use this API to fetch filtered set of br_app_by_wan_volume resources.
filter string should be in JSON format.eg: "vm_state:DOWN,name:[a-z]+"
324486
public static br_app_by_wan_volume[] get_filtered(nitro_service service, String filter) throws Exception
	{
		br_app_by_wan_volume obj = new br_app_by_wan_volume();
		options option = new options();
		option.set_filter(filter);
		br_app_by_wan_volume[] response = (br_app_by_wan_volume[]) 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;
	}
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;
	}
671763
public static ns_vm_template[] get_filtered(nitro_service service, String filter) throws Exception
	{
		ns_vm_template obj = new ns_vm_template();
		options option = new options();
		option.set_filter(filter);
		ns_vm_template[] response = (ns_vm_template[]) 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;
	}
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;
	}
1294103
public static br_vm_template[] get_filtered(nitro_service service, String filter) throws Exception
	{
		br_vm_template obj = new br_vm_template();
		options option = new options();
		option.set_filter(filter);
		br_vm_template[] response = (br_vm_template[]) obj.getfiltered(service, option);
		return response;
	}
747675
public static backup_file[] get_filtered(nitro_service service, String filter) throws Exception
	{
		backup_file obj = new backup_file();
		options option = new options();
		option.set_filter(filter);
		backup_file[] response = (backup_file[]) obj.getfiltered(service, option);
		return response;
	}
222307
def get_reachable_volume_templates(self, start=0, count=-1, filter='', query='', sort='',
                                       networks=None, scope_uris='', private_allowed_only=False):
        
        uri = self.URI + "/reachable-volume-templates"

        uri += "?networks={}&privateAllowedOnly={}".format(networks, private_allowed_only)

        get_uri = self._client.build_query_uri(start=start, count=count, filter=filter,
                                               query=query, sort=sort, uri=uri, scope_uris=scope_uris)
        return self._client.get(get_uri)
513329
public static ns_vserver_appflow_config[] get_filtered(nitro_service service, filtervalue[] filter) throws Exception
	{
		ns_vserver_appflow_config obj = new ns_vserver_appflow_config();
		options option = new options();
		option.set_filter(filter);
		ns_vserver_appflow_config[] response = (ns_vserver_appflow_config[]) obj.getfiltered(service, option);
		return response;
	}
752171
public static sms_server[] get_filtered(nitro_service service, String filter) throws Exception
	{
		sms_server obj = new sms_server();
		options option = new options();
		option.set_filter(filter);
		sms_server[] response = (sms_server[]) obj.getfiltered(service, option);
		return response;
	}
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;
	}
85262
public static snmp_view[] get_filtered(nitro_service service, String filter) throws Exception
	{
		snmp_view obj = new snmp_view();
		options option = new options();
		option.set_filter(filter);
		snmp_view[] response = (snmp_view[]) 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;
	}
373439
public static snmpmanager[] get_filtered(nitro_service service, String filter) throws Exception{
		snmpmanager obj = new snmpmanager();
		options option = new options();
		option.set_filter(filter);
		snmpmanager[] response = (snmpmanager[]) 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
429566
def volume_list(self, search_opts=None):
        '''
        
        '''
        if self.volume_conn is None:
            raise SaltCloudSystemExit('No cinder endpoint available')
        nt_ks = self.volume_conn
        volumes = nt_ks.volumes.list(search_opts=search_opts)
        response = {}
        for volume in volumes:
            response[volume.display_name] = {
                'name': volume.display_name,
                'size': volume.size,
                'id': volume.id,
                'description': volume.display_description,
                'attachments': volume.attachments,
                'status': volume.status
            }
        return response