Use this API to add dnsnameserver resources.
978012
public static base_responses add(nitro_service client, dnsnameserver resources[]) throws Exception {
		base_responses result = null;
		if (resources != null && resources.length > 0) {
			dnsnameserver addresources[] = new dnsnameserver[resources.length];
			for (int i=0;i<resources.length;i++){
				addresources[i] = new dnsnameserver();
				addresources[i].ip = resources[i].ip;
				addresources[i].dnsvservername = resources[i].dnsvservername;
				addresources[i].local = resources[i].local;
				addresources[i].state = resources[i].state;
				addresources[i].type = resources[i].type;
			}
			result = add_bulk_request(client, addresources);
		}
		return result;
	}
152394
public static base_responses add(nitro_service client, dnssoarec resources[]) throws Exception {
		base_responses result = null;
		if (resources != null && resources.length > 0) {
			dnssoarec addresources[] = new dnssoarec[resources.length];
			for (int i=0;i<resources.length;i++){
				addresources[i] = new dnssoarec();
				addresources[i].domain = resources[i].domain;
				addresources[i].originserver = resources[i].originserver;
				addresources[i].contact = resources[i].contact;
				addresources[i].serial = resources[i].serial;
				addresources[i].refresh = resources[i].refresh;
				addresources[i].retry = resources[i].retry;
				addresources[i].expire = resources[i].expire;
				addresources[i].minimum = resources[i].minimum;
				addresources[i].ttl = resources[i].ttl;
			}
			result = add_bulk_request(client, addresources);
		}
		return result;
	}
1264659
public static base_response add(nitro_service client, dnsaction resource) throws Exception {
		dnsaction addresource = new dnsaction();
		addresource.actionname = resource.actionname;
		addresource.actiontype = resource.actiontype;
		addresource.ipaddress = resource.ipaddress;
		addresource.ttl = resource.ttl;
		addresource.viewname = resource.viewname;
		addresource.preferredloclist = resource.preferredloclist;
		return addresource.add_resource(client);
	}
898039
public static base_responses add(nitro_service client, nsip6 resources[]) throws Exception {
		base_responses result = null;
		if (resources != null && resources.length > 0) {
			nsip6 addresources[] = new nsip6[resources.length];
			for (int i=0;i<resources.length;i++){
				addresources[i] = new nsip6();
				addresources[i].ipv6address = resources[i].ipv6address;
				addresources[i].scope = resources[i].scope;
				addresources[i].type = resources[i].type;
				addresources[i].vlan = resources[i].vlan;
				addresources[i].nd = resources[i].nd;
				addresources[i].icmp = resources[i].icmp;
				addresources[i].vserver = resources[i].vserver;
				addresources[i].telnet = resources[i].telnet;
				addresources[i].ftp = resources[i].ftp;
				addresources[i].gui = resources[i].gui;
				addresources[i].ssh = resources[i].ssh;
				addresources[i].snmp = resources[i].snmp;
				addresources[i].mgmtaccess = resources[i].mgmtaccess;
				addresources[i].restrictaccess = resources[i].restrictaccess;
				addresources[i].dynamicrouting = resources[i].dynamicrouting;
				addresources[i].hostroute = resources[i].hostroute;
				addresources[i].ip6hostrtgw = resources[i].ip6hostrtgw;
				addresources[i].metric = resources[i].metric;
				addresources[i].vserverrhilevel = resources[i].vserverrhilevel;
				addresources[i].ospf6lsatype = resources[i].ospf6lsatype;
				addresources[i].ospfarea = resources[i].ospfarea;
				addresources[i].state = resources[i].state;
				addresources[i].map = resources[i].map;
				addresources[i].ownernode = resources[i].ownernode;
				addresources[i].td = resources[i].td;
			}
			result = add_bulk_request(client, addresources);
		}
		return result;
	}
1373844
public static base_responses add(nitro_service client, dnsptrrec resources[]) throws Exception {
		base_responses result = null;
		if (resources != null && resources.length > 0) {
			dnsptrrec addresources[] = new dnsptrrec[resources.length];
			for (int i=0;i<resources.length;i++){
				addresources[i] = new dnsptrrec();
				addresources[i].reversedomain = resources[i].reversedomain;
				addresources[i].domain = resources[i].domain;
				addresources[i].ttl = resources[i].ttl;
			}
			result = add_bulk_request(client, addresources);
		}
		return result;
	}
855049
def __add_namespaceinfo(self, ni):
        """"""
        self.__ns_uri_map[ni.uri] = ni
        for prefix in ni.prefixes:
            self.__prefix_map[prefix] = ni
1093361
public static base_responses add(nitro_service client, dnsaaaarec resources[]) throws Exception {
		base_responses result = null;
		if (resources != null && resources.length > 0) {
			dnsaaaarec addresources[] = new dnsaaaarec[resources.length];
			for (int i=0;i<resources.length;i++){
				addresources[i] = new dnsaaaarec();
				addresources[i].hostname = resources[i].hostname;
				addresources[i].ipv6address = resources[i].ipv6address;
				addresources[i].ttl = resources[i].ttl;
			}
			result = add_bulk_request(client, addresources);
		}
		return result;
	}
774627
def add_hosts(self, hostIds):
    
    hostRefList = [ApiHostRef(self._get_resource_root(), x) for x in hostIds]
    return self._post("hosts", ApiHostRef, True, data=hostRefList,
        api_version=3)
462573
public static base_response add(nitro_service client, nat64 resource) throws Exception {
		nat64 addresource = new nat64();
		addresource.name = resource.name;
		addresource.acl6name = resource.acl6name;
		addresource.netprofile = resource.netprofile;
		return addresource.add_resource(client);
	}
992423
public static base_response enable(nitro_service client, dnsnameserver resource) throws Exception {
		dnsnameserver enableresource = new dnsnameserver();
		enableresource.ip = resource.ip;
		enableresource.dnsvservername = resource.dnsvservername;
		return enableresource.perform_operation(client,"enable");
	}
1142467
public static base_responses add(nitro_service client, dnssuffix resources[]) throws Exception {
		base_responses result = null;
		if (resources != null && resources.length > 0) {
			dnssuffix addresources[] = new dnssuffix[resources.length];
			for (int i=0;i<resources.length;i++){
				addresources[i] = new dnssuffix();
				addresources[i].Dnssuffix = resources[i].Dnssuffix;
			}
			result = add_bulk_request(client, addresources);
		}
		return result;
	}
787922
def add_single(self, hostname, ports, nickname=None, **kws):
        '''
            
        '''
        nickname = nickname or hostname

        self[hostname.lower()] = ServerInfo(nickname, hostname, ports, **kws)
1263899
public static base_response add(nitro_service client, route resource) throws Exception {
		route addresource = new route();
		addresource.network = resource.network;
		addresource.netmask = resource.netmask;
		addresource.gateway = resource.gateway;
		addresource.cost = resource.cost;
		addresource.td = resource.td;
		addresource.distance = resource.distance;
		addresource.cost1 = resource.cost1;
		addresource.weight = resource.weight;
		addresource.advertise = resource.advertise;
		addresource.protocol = resource.protocol;
		addresource.msr = resource.msr;
		addresource.monitor = resource.monitor;
		return addresource.add_resource(client);
	}
833821
public static base_responses add(nitro_service client, forwardingsession resources[]) throws Exception {
		base_responses result = null;
		if (resources != null && resources.length > 0) {
			forwardingsession addresources[] = new forwardingsession[resources.length];
			for (int i=0;i<resources.length;i++){
				addresources[i] = new forwardingsession();
				addresources[i].name = resources[i].name;
				addresources[i].network = resources[i].network;
				addresources[i].netmask = resources[i].netmask;
				addresources[i].acl6name = resources[i].acl6name;
				addresources[i].aclname = resources[i].aclname;
				addresources[i].connfailover = resources[i].connfailover;
			}
			result = add_bulk_request(client, addresources);
		}
		return result;
	}
80902
public static base_responses add(nitro_service client, nd6 resources[]) throws Exception {
		base_responses result = null;
		if (resources != null && resources.length > 0) {
			nd6 addresources[] = new nd6[resources.length];
			for (int i=0;i<resources.length;i++){
				addresources[i] = new nd6();
				addresources[i].neighbor = resources[i].neighbor;
				addresources[i].mac = resources[i].mac;
				addresources[i].ifnum = resources[i].ifnum;
				addresources[i].vlan = resources[i].vlan;
				addresources[i].td = resources[i].td;
			}
			result = add_bulk_request(client, addresources);
		}
		return result;
	}
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
1112325
public static base_responses update(nitro_service client, dnszone resources[]) throws Exception {
		base_responses result = null;
		if (resources != null && resources.length > 0) {
			dnszone updateresources[] = new dnszone[resources.length];
			for (int i=0;i<resources.length;i++){
				updateresources[i] = new dnszone();
				updateresources[i].zonename = resources[i].zonename;
				updateresources[i].proxymode = resources[i].proxymode;
				updateresources[i].dnssecoffload = resources[i].dnssecoffload;
				updateresources[i].nsec = resources[i].nsec;
			}
			result = update_bulk_request(client, updateresources);
		}
		return result;
	}