code: public static host_cpu_core[] get_filtered(nitro_service service, String filter) throws Exception
  	{
  		host_cpu_core obj = new host_cpu_core();
  		options option = new options();
  		option.set_filter(filter);
  		host_cpu_core[] response = (host_cpu_core[]) obj.getfiltered(service, option);
  		return response;
  	}
docs: Use this API to fetch filtered set of host_cpu_core resources.
  filter string should be in JSON format.eg: "vm_state:DOWN,name:[a-z]+"