code: 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;
  	}
docs: Use this API to fetch filtered set of device_profile resources.
  filter string should be in JSON format.eg: "vm_state:DOWN,name:[a-z]+"