Use this API to fetch filtered set of ns_clusternode resources.
filter string should be in JSON format.eg: "vm_state:DOWN,name:[a-z]+"
557615
public static ns_clusternode[] get_filtered(nitro_service service, String filter) throws Exception
	{
		ns_clusternode obj = new ns_clusternode();
		options option = new options();
		option.set_filter(filter);
		ns_clusternode[] response = (ns_clusternode[]) obj.getfiltered(service, option);
		return response;
	}
1365936
public static vm_device[] get_filtered(nitro_service service, String filter) throws Exception
	{
		vm_device obj = new vm_device();
		options option = new options();
		option.set_filter(filter);
		vm_device[] response = (vm_device[]) obj.getfiltered(service, option);
		return response;
	}
186200
public static ns_detail_vlan[] get_filtered(nitro_service service, String filter) throws Exception
	{
		ns_detail_vlan obj = new ns_detail_vlan();
		options option = new options();
		option.set_filter(filter);
		ns_detail_vlan[] response = (ns_detail_vlan[]) obj.getfiltered(service, option);
		return response;
	}
519614
public static vm_template[] get_filtered(nitro_service service, String filter) throws Exception
	{
		vm_template obj = new vm_template();
		options option = new options();
		option.set_filter(filter);
		vm_template[] response = (vm_template[]) obj.getfiltered(service, option);
		return response;
	}
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;
	}
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;
	}
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;
	}
811667
public static systemgroup[] get_filtered(nitro_service service, String filter) throws Exception{
		systemgroup obj = new systemgroup();
		options option = new options();
		option.set_filter(filter);
		systemgroup[] response = (systemgroup[]) obj.getfiltered(service, option);
		return response;
	}
852470
public static clusternodegroup get(nitro_service service, String name) throws Exception{
		clusternodegroup obj = new clusternodegroup();
		obj.set_name(name);
		clusternodegroup response = (clusternodegroup) obj.get_resource(service);
		return response;
	}
962883
public static nshostname[] get_filtered(nitro_service service, String filter) throws Exception{
		nshostname obj = new nshostname();
		options option = new options();
		option.set_filter(filter);
		nshostname[] response = (nshostname[]) 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;
	}
658080
public static ipset[] get_filtered(nitro_service service, String filter) throws Exception{
		ipset obj = new ipset();
		options option = new options();
		option.set_filter(filter);
		ipset[] response = (ipset[]) obj.getfiltered(service, option);
		return response;
	}
1063122
public static long count_filtered(nitro_service service, Long clid, String filter) throws Exception{
		clusterinstance_clusternode_binding obj = new clusterinstance_clusternode_binding();
		obj.set_clid(clid);
		options option = new options();
		option.set_count(true);
		option.set_filter(filter);
		clusterinstance_clusternode_binding[] response = (clusterinstance_clusternode_binding[]) obj.getfiltered(service, option);
		if (response != null) {
			return response[0].__count;
		}
		return 0;
	}
768632
public static syslog_aaa[] get_filtered(nitro_service service, String filter) throws Exception
	{
		syslog_aaa obj = new syslog_aaa();
		options option = new options();
		option.set_filter(filter);
		syslog_aaa[] response = (syslog_aaa[]) obj.getfiltered(service, option);
		return response;
	}
542752
public static dnssuffix[] get_filtered(nitro_service service, String filter) throws Exception{
		dnssuffix obj = new dnssuffix();
		options option = new options();
		option.set_filter(filter);
		dnssuffix[] response = (dnssuffix[]) obj.getfiltered(service, option);
		return response;
	}
1050883
public static ns_configtemplate[] get_filtered(nitro_service service, String filter) throws Exception
	{
		ns_configtemplate obj = new ns_configtemplate();
		options option = new options();
		option.set_filter(filter);
		ns_configtemplate[] response = (ns_configtemplate[]) obj.getfiltered(service, option);
		return response;
	}
251911
public static ping[] get_filtered(nitro_service service, String filter) throws Exception
	{
		ping obj = new ping();
		options option = new options();
		option.set_filter(filter);
		ping[] response = (ping[]) obj.getfiltered(service, option);
		return response;
	}