Use this API to fetch filtered set of nshostname resources.
filter string should be in JSON format.eg: "port:80,servicetype:HTTP".
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;
	}
356345
public static host_device[] get_filtered(nitro_service service, String filter) throws Exception
	{
		host_device obj = new host_device();
		options option = new options();
		option.set_filter(filter);
		host_device[] response = (host_device[]) obj.getfiltered(service, option);
		return response;
	}
248516
public static ns_aaasession[] get_filtered(nitro_service service, String filter) throws Exception
	{
		ns_aaasession obj = new ns_aaasession();
		options option = new options();
		option.set_filter(filter);
		ns_aaasession[] response = (ns_aaasession[]) obj.getfiltered(service, option);
		return response;
	}
693947
public static ns_ns_runningconfig[] get_filtered(nitro_service service, String filter) throws Exception
	{
		ns_ns_runningconfig obj = new ns_ns_runningconfig();
		options option = new options();
		option.set_filter(filter);
		ns_ns_runningconfig[] response = (ns_ns_runningconfig[]) obj.getfiltered(service, option);
		return response;
	}
280721
public static rnat6[] get_filtered(nitro_service service, String filter) throws Exception{
		rnat6 obj = new rnat6();
		options option = new options();
		option.set_filter(filter);
		rnat6[] response = (rnat6[]) obj.getfiltered(service, option);
		return response;
	}
326504
public static mps_network_config[] get_filtered(nitro_service service, String filter) throws Exception
	{
		mps_network_config obj = new mps_network_config();
		options option = new options();
		option.set_filter(filter);
		mps_network_config[] response = (mps_network_config[]) obj.getfiltered(service, option);
		return response;
	}
1351299
public static server[] get_filtered(nitro_service service, filtervalue[] filter) throws Exception{
		server obj = new server();
		options option = new options();
		option.set_filter(filter);
		server[] response = (server[]) obj.getfiltered(service, option);
		return response;
	}
250054
public static service[] get_filtered(nitro_service service, String filter) throws Exception{
		service obj = new service();
		options option = new options();
		option.set_filter(filter);
		service[] response = (service[]) 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;
	}
608635
public static dnspolicy64[] get_filtered(nitro_service service, filtervalue[] filter) throws Exception{
		dnspolicy64 obj = new dnspolicy64();
		options option = new options();
		option.set_filter(filter);
		dnspolicy64[] response = (dnspolicy64[]) obj.getfiltered(service, option);
		return response;
	}
534123
public static aaasession[] get_filtered(nitro_service service, String filter) throws Exception{
		aaasession obj = new aaasession();
		options option = new options();
		option.set_filter(filter);
		aaasession[] response = (aaasession[]) obj.getfiltered(service, option);
		return response;
	}
1220367
public static nshostname[] get(nitro_service service, options option) throws Exception{
		nshostname obj = new nshostname();
		nshostname[] response = (nshostname[])obj.get_resources(service,option);
		return response;
	}
1306458
public static ns_ns_ip[] get_filtered(nitro_service service, String filter) throws Exception
	{
		ns_ns_ip obj = new ns_ns_ip();
		options option = new options();
		option.set_filter(filter);
		ns_ns_ip[] response = (ns_ns_ip[]) 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;
	}
404163
public static nsacl[] get_filtered(nitro_service service, String filter) throws Exception{
		nsacl obj = new nsacl();
		options option = new options();
		option.set_filter(filter);
		nsacl[] response = (nsacl[]) 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;
	}
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;
	}