Use this API to fetch dnsnsecrec resources of given names .
545998
public static dnsnsecrec[] get(nitro_service service, String hostname[]) throws Exception{
		if (hostname !=null && hostname.length>0) {
			dnsnsecrec response[] = new dnsnsecrec[hostname.length];
			dnsnsecrec obj[] = new dnsnsecrec[hostname.length];
			for (int i=0;i<hostname.length;i++) {
				obj[i] = new dnsnsecrec();
				obj[i].set_hostname(hostname[i]);
				response[i] = (dnsnsecrec) obj[i].get_resource(service);
			}
			return response;
		}
		return null;
	}
546217
public static dnssrvrec[] get(nitro_service service, dnssrvrec_args args) throws Exception{
		dnssrvrec obj = new dnssrvrec();
		options option = new options();
		option.set_args(nitro_util.object_to_string_withoutquotes(args));
		dnssrvrec[] response = (dnssrvrec[])obj.get_resources(service, option);
		return response;
	}
459466
public static dnssuffix get(nitro_service service, String Dnssuffix) throws Exception{
		dnssuffix obj = new dnssuffix();
		obj.set_Dnssuffix(Dnssuffix);
		dnssuffix response = (dnssuffix) obj.get_resource(service);
		return response;
	}
1286664
def _build_resource(self):
        """"""
        resource = {"name": self.name}

        if self.dns_name is not None:
            resource["dnsName"] = self.dns_name

        if self.description is not None:
            resource["description"] = self.description

        if self.name_server_set is not None:
            resource["nameServerSet"] = self.name_server_set

        return resource
255489
def _get_namespaces(apiserver_url, name=""):
    ''''''
    # Prepare URL
    url = "{0}/api/v1/namespaces/{1}".format(apiserver_url, name)
    # Make request
    ret = http.query(url)
    if ret.get("body"):
        return salt.utils.json.loads(ret.get("body"))
    else:
        return None
296986
public static dnsaddrec[] get(nitro_service service) throws Exception{
		dnsaddrec obj = new dnsaddrec();
		dnsaddrec[] response = (dnsaddrec[])obj.get_resources(service);
		return response;
	}
6100
public static dnssuffix[] get(nitro_service service, String Dnssuffix[]) throws Exception{
		if (Dnssuffix !=null && Dnssuffix.length>0) {
			dnssuffix response[] = new dnssuffix[Dnssuffix.length];
			dnssuffix obj[] = new dnssuffix[Dnssuffix.length];
			for (int i=0;i<Dnssuffix.length;i++) {
				obj[i] = new dnssuffix();
				obj[i].set_Dnssuffix(Dnssuffix[i]);
				response[i] = (dnssuffix) obj[i].get_resource(service);
			}
			return response;
		}
		return null;
	}
653961
public static dnssoarec[] get_filtered(nitro_service service, String filter) throws Exception{
		dnssoarec obj = new dnssoarec();
		options option = new options();
		option.set_filter(filter);
		dnssoarec[] response = (dnssoarec[]) obj.getfiltered(service, option);
		return response;
	}
610797
public static dnscnamerec[] get(nitro_service service) throws Exception{
		dnscnamerec obj = new dnscnamerec();
		dnscnamerec[] response = (dnscnamerec[])obj.get_resources(service);
		return response;
	}
1217025
def get_netki_domains(self, fetch=False):
        """"""
        return NetkiDomains(
            self.resource.netki_domains, self.client, populate=fetch)
1014710
public static dnsnsrec[] get(nitro_service service, dnsnsrec_args args) throws Exception{
		dnsnsrec obj = new dnsnsrec();
		options option = new options();
		option.set_args(nitro_util.object_to_string_withoutquotes(args));
		dnsnsrec[] response = (dnsnsrec[])obj.get_resources(service, option);
		return response;
	}
995638
public static dnsmxrec[] get(nitro_service service, options option) throws Exception{
		dnsmxrec obj = new dnsmxrec();
		dnsmxrec[] response = (dnsmxrec[])obj.get_resources(service,option);
		return response;
	}
84497
public static dnsptrrec get(nitro_service service, String reversedomain) throws Exception{
		dnsptrrec obj = new dnsptrrec();
		obj.set_reversedomain(reversedomain);
		dnsptrrec response = (dnsptrrec) obj.get_resource(service);
		return response;
	}
1102327
public static dnsaaaarec[] get_filtered(nitro_service service, String filter) throws Exception{
		dnsaaaarec obj = new dnsaaaarec();
		options option = new options();
		option.set_filter(filter);
		dnsaaaarec[] response = (dnsaaaarec[]) obj.getfiltered(service, option);
		return response;
	}
340768
public static vpnurl[] get(nitro_service service) throws Exception{
		vpnurl obj = new vpnurl();
		vpnurl[] response = (vpnurl[])obj.get_resources(service);
		return response;
	}
1292278
public static dnsrecords_stats[] get(nitro_service service) throws Exception{
		dnsrecords_stats obj = new dnsrecords_stats();
		dnsrecords_stats[] response = (dnsrecords_stats[])obj.stat_resources(service);
		return response;
	}
997886
public static dnsview get(nitro_service service, String viewname) throws Exception{
		dnsview obj = new dnsview();
		obj.set_viewname(viewname);
		dnsview response = (dnsview) obj.get_resource(service);
		return response;
	}