Use this API to fetch all the dnstxtrec resources that are configured on netscaler.
This uses dnstxtrec_args which is a way to provide additional arguments while fetching the resources.
502267
public static dnstxtrec[] get(nitro_service service, dnstxtrec_args args) throws Exception{
		dnstxtrec obj = new dnstxtrec();
		options option = new options();
		option.set_args(nitro_util.object_to_string_withoutquotes(args));
		dnstxtrec[] response = (dnstxtrec[])obj.get_resources(service, option);
		return response;
	}
1077263
public static ntpstatus get(nitro_service service) throws Exception{
		ntpstatus obj = new ntpstatus();
		ntpstatus[] response = (ntpstatus[])obj.get_resources(service);
		return response[0];
	}
1105358
public static dnsaddrec[] get(nitro_service service, dnsaddrec_args args) throws Exception{
		dnsaddrec obj = new dnsaddrec();
		options option = new options();
		option.set_args(nitro_util.object_to_string_withoutquotes(args));
		dnsaddrec[] response = (dnsaddrec[])obj.get_resources(service, option);
		return response;
	}
107075
public static nstcpparam get(nitro_service service) throws Exception{
		nstcpparam obj = new nstcpparam();
		nstcpparam[] response = (nstcpparam[])obj.get_resources(service);
		return response[0];
	}
1295208
public static nstcpbufparam get(nitro_service service) throws Exception{
		nstcpbufparam obj = new nstcpbufparam();
		nstcpbufparam[] response = (nstcpbufparam[])obj.get_resources(service);
		return response[0];
	}
275142
public static snmptrap[] get(nitro_service service) throws Exception{
		snmptrap obj = new snmptrap();
		snmptrap[] response = (snmptrap[])obj.get_resources(service);
		return response;
	}
117308
public static dnscnamerec[] get(nitro_service service, String aliasname[]) throws Exception{
		if (aliasname !=null && aliasname.length>0) {
			dnscnamerec response[] = new dnscnamerec[aliasname.length];
			dnscnamerec obj[] = new dnscnamerec[aliasname.length];
			for (int i=0;i<aliasname.length;i++) {
				obj[i] = new dnscnamerec();
				obj[i].set_aliasname(aliasname[i]);
				response[i] = (dnscnamerec) obj[i].get_resource(service);
			}
			return response;
		}
		return null;
	}
235461
public static systemdatasource[] get(nitro_service service, systemdatasource_args args) throws Exception{
		systemdatasource obj = new systemdatasource();
		options option = new options();
		option.set_args(nitro_util.object_to_string_withoutquotes(args));
		systemdatasource[] response = (systemdatasource[])obj.get_resources(service, option);
		return response;
	}
810044
public static nshttpparam get(nitro_service service) throws Exception{
		nshttpparam obj = new nshttpparam();
		nshttpparam[] response = (nshttpparam[])obj.get_resources(service);
		return response[0];
	}
1307250
public static dnsmxrec[] get(nitro_service service, dnsmxrec_args args) throws Exception{
		dnsmxrec obj = new dnsmxrec();
		options option = new options();
		option.set_args(nitro_util.object_to_string_withoutquotes(args));
		dnsmxrec[] response = (dnsmxrec[])obj.get_resources(service, option);
		return response;
	}
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;
	}
819306
public static snmpoid[] get(nitro_service service, snmpoid_args args) throws Exception{
		snmpoid obj = new snmpoid();
		options option = new options();
		option.set_args(nitro_util.object_to_string_withoutquotes(args));
		snmpoid[] response = (snmpoid[])obj.get_resources(service, option);
		return response;
	}
232222
public static xen[] get(nitro_service client) throws Exception
	{
		xen resource = new xen();
		resource.validate("get");
		return (xen[]) resource.get_resources(client);
	}
733773
public static dnscnamerec get(nitro_service service, String aliasname) throws Exception{
		dnscnamerec obj = new dnscnamerec();
		obj.set_aliasname(aliasname);
		dnscnamerec response = (dnscnamerec) obj.get_resource(service);
		return response;
	}
99548
protected base_resource[] get_nitro_response(nitro_service service, String response) throws Exception {
		dns_stats[] resources = new dns_stats[1];
		dns_response result = (dns_response) service.get_payload_formatter().string_to_resource(dns_response.class, response);
		if(result.errorcode != 0) {
			if (result.errorcode == 444) {
				service.clear_session();
			}
			if(result.severity != null)
			{
				if (result.severity.equals("ERROR"))
					throw new nitro_exception(result.message,result.errorcode);
			}
			else
			{
				throw new nitro_exception(result.message,result.errorcode);
			}
		}
		resources[0] = result.dns;
		return resources;
	}
1362628
public static ns_vpnicaconnection[] get(nitro_service client) throws Exception
	{
		ns_vpnicaconnection resource = new ns_vpnicaconnection();
		resource.validate("get");
		return (ns_vpnicaconnection[]) resource.get_resources(client);
	}
369055
public static dnsaction[] get(nitro_service service) throws Exception{
		dnsaction obj = new dnsaction();
		dnsaction[] response = (dnsaction[])obj.get_resources(service);
		return response;
	}