Use this API to fetch filtered set of physical_disk resources.
filter string should be in JSON format.eg: "vm_state:DOWN,name:[a-z]+"
169133
public static physical_disk[] get_filtered(nitro_service service, String filter) throws Exception
	{
		physical_disk obj = new physical_disk();
		options option = new options();
		option.set_filter(filter);
		physical_disk[] response = (physical_disk[]) 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;
	}
703185
public static vpnvserver[] get_filtered(nitro_service service, String filter) throws Exception{
		vpnvserver obj = new vpnvserver();
		options option = new options();
		option.set_filter(filter);
		vpnvserver[] response = (vpnvserver[]) 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;
	}
1260096
public static policymap[] get_filtered(nitro_service service, String filter) throws Exception{
		policymap obj = new policymap();
		options option = new options();
		option.set_filter(filter);
		policymap[] response = (policymap[]) obj.getfiltered(service, option);
		return response;
	}
751197
public static ns_cluster[] get_filtered(nitro_service service, String filter) throws Exception
	{
		ns_cluster obj = new ns_cluster();
		options option = new options();
		option.set_filter(filter);
		ns_cluster[] response = (ns_cluster[]) 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;
	}
424201
public static tmsessionpolicy[] get_filtered(nitro_service service, String filter) throws Exception{
		tmsessionpolicy obj = new tmsessionpolicy();
		options option = new options();
		option.set_filter(filter);
		tmsessionpolicy[] response = (tmsessionpolicy[]) obj.getfiltered(service, option);
		return response;
	}
1093836
def get_physical_server_hardware(self):
        
        uri = "{}/physicalServerHardware".format(self.data["uri"])
        return self._helper.do_get(uri)
178802
public static backup_policy[] get_filtered(nitro_service service, String filter) throws Exception
	{
		backup_policy obj = new backup_policy();
		options option = new options();
		option.set_filter(filter);
		backup_policy[] response = (backup_policy[]) obj.getfiltered(service, option);
		return response;
	}
1123318
public static xen_smx_gsbvpx_image[] get_filtered(nitro_service service, String filter) throws Exception
	{
		xen_smx_gsbvpx_image obj = new xen_smx_gsbvpx_image();
		options option = new options();
		option.set_filter(filter);
		xen_smx_gsbvpx_image[] response = (xen_smx_gsbvpx_image[]) obj.getfiltered(service, option);
		return response;
	}
1049730
public static ntp_server[] get_filtered(nitro_service service, String filter) throws Exception
	{
		ntp_server obj = new ntp_server();
		options option = new options();
		option.set_filter(filter);
		ntp_server[] response = (ntp_server[]) obj.getfiltered(service, option);
		return response;
	}
230815
public static ns[] get_filtered(nitro_service service, filtervalue[] filter) throws Exception
	{
		ns obj = new ns();
		options option = new options();
		option.set_filter(filter);
		ns[] response = (ns[]) obj.getfiltered(service, option);
		return response;
	}
170901
public static hostcpu[] get_filtered(nitro_service service, String filter) throws Exception
	{
		hostcpu obj = new hostcpu();
		options option = new options();
		option.set_filter(filter);
		hostcpu[] response = (hostcpu[]) obj.getfiltered(service, option);
		return response;
	}
716715
public static task_device_log[] get_filtered(nitro_service service, String filter) throws Exception
	{
		task_device_log obj = new task_device_log();
		options option = new options();
		option.set_filter(filter);
		task_device_log[] response = (task_device_log[]) 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
946437
public static systemsession[] get_filtered(nitro_service service, String filter) throws Exception{
		systemsession obj = new systemsession();
		options option = new options();
		option.set_filter(filter);
		systemsession[] response = (systemsession[]) obj.getfiltered(service, option);
		return response;
	}