Use this API to add nsip resources.
968392
public static base_responses add(nitro_service client, nsip resources[]) throws Exception {
		base_responses result = null;
		if (resources != null && resources.length > 0) {
			nsip addresources[] = new nsip[resources.length];
			for (int i=0;i<resources.length;i++){
				addresources[i] = new nsip();
				addresources[i].ipaddress = resources[i].ipaddress;
				addresources[i].netmask = resources[i].netmask;
				addresources[i].type = resources[i].type;
				addresources[i].arp = resources[i].arp;
				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].ospf = resources[i].ospf;
				addresources[i].bgp = resources[i].bgp;
				addresources[i].rip = resources[i].rip;
				addresources[i].hostroute = resources[i].hostroute;
				addresources[i].hostrtgw = resources[i].hostrtgw;
				addresources[i].metric = resources[i].metric;
				addresources[i].vserverrhilevel = resources[i].vserverrhilevel;
				addresources[i].ospflsatype = resources[i].ospflsatype;
				addresources[i].ospfarea = resources[i].ospfarea;
				addresources[i].state = resources[i].state;
				addresources[i].vrid = resources[i].vrid;
				addresources[i].icmpresponse = resources[i].icmpresponse;
				addresources[i].ownernode = resources[i].ownernode;
				addresources[i].arpresponse = resources[i].arpresponse;
				addresources[i].td = resources[i].td;
			}
			result = add_bulk_request(client, addresources);
		}
		return result;
	}
1277296
public static base_response add(nitro_service client, dnssuffix resource) throws Exception {
		dnssuffix addresource = new dnssuffix();
		addresource.Dnssuffix = resource.Dnssuffix;
		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;
	}
273490
public static base_responses add(nitro_service client, nsacl resources[]) throws Exception {
		base_responses result = null;
		if (resources != null && resources.length > 0) {
			nsacl addresources[] = new nsacl[resources.length];
			for (int i=0;i<resources.length;i++){
				addresources[i] = new nsacl();
				addresources[i].aclname = resources[i].aclname;
				addresources[i].aclaction = resources[i].aclaction;
				addresources[i].td = resources[i].td;
				addresources[i].srcip = resources[i].srcip;
				addresources[i].srcipop = resources[i].srcipop;
				addresources[i].srcipval = resources[i].srcipval;
				addresources[i].srcport = resources[i].srcport;
				addresources[i].srcportop = resources[i].srcportop;
				addresources[i].srcportval = resources[i].srcportval;
				addresources[i].destip = resources[i].destip;
				addresources[i].destipop = resources[i].destipop;
				addresources[i].destipval = resources[i].destipval;
				addresources[i].destport = resources[i].destport;
				addresources[i].destportop = resources[i].destportop;
				addresources[i].destportval = resources[i].destportval;
				addresources[i].ttl = resources[i].ttl;
				addresources[i].srcmac = resources[i].srcmac;
				addresources[i].protocol = resources[i].protocol;
				addresources[i].protocolnumber = resources[i].protocolnumber;
				addresources[i].vlan = resources[i].vlan;
				addresources[i].Interface = resources[i].Interface;
				addresources[i].established = resources[i].established;
				addresources[i].icmptype = resources[i].icmptype;
				addresources[i].icmpcode = resources[i].icmpcode;
				addresources[i].priority = resources[i].priority;
				addresources[i].state = resources[i].state;
				addresources[i].logstate = resources[i].logstate;
				addresources[i].ratelimit = resources[i].ratelimit;
			}
			result = add_bulk_request(client, addresources);
		}
		return result;
	}
50167
public static base_response add(nitro_service client, service resource) throws Exception {
		service addresource = new service();
		addresource.name = resource.name;
		addresource.ip = resource.ip;
		addresource.servername = resource.servername;
		addresource.servicetype = resource.servicetype;
		addresource.port = resource.port;
		addresource.cleartextport = resource.cleartextport;
		addresource.cachetype = resource.cachetype;
		addresource.maxclient = resource.maxclient;
		addresource.healthmonitor = resource.healthmonitor;
		addresource.maxreq = resource.maxreq;
		addresource.cacheable = resource.cacheable;
		addresource.cip = resource.cip;
		addresource.cipheader = resource.cipheader;
		addresource.usip = resource.usip;
		addresource.pathmonitor = resource.pathmonitor;
		addresource.pathmonitorindv = resource.pathmonitorindv;
		addresource.useproxyport = resource.useproxyport;
		addresource.sc = resource.sc;
		addresource.sp = resource.sp;
		addresource.rtspsessionidremap = resource.rtspsessionidremap;
		addresource.clttimeout = resource.clttimeout;
		addresource.svrtimeout = resource.svrtimeout;
		addresource.customserverid = resource.customserverid;
		addresource.serverid = resource.serverid;
		addresource.cka = resource.cka;
		addresource.tcpb = resource.tcpb;
		addresource.cmp = resource.cmp;
		addresource.maxbandwidth = resource.maxbandwidth;
		addresource.accessdown = resource.accessdown;
		addresource.monthreshold = resource.monthreshold;
		addresource.state = resource.state;
		addresource.downstateflush = resource.downstateflush;
		addresource.tcpprofilename = resource.tcpprofilename;
		addresource.httpprofilename = resource.httpprofilename;
		addresource.hashid = resource.hashid;
		addresource.comment = resource.comment;
		addresource.appflowlog = resource.appflowlog;
		addresource.netprofile = resource.netprofile;
		addresource.td = resource.td;
		return addresource.add_resource(client);
	}
971333
public static base_responses add(nitro_service client, location resources[]) throws Exception {
		base_responses result = null;
		if (resources != null && resources.length > 0) {
			location addresources[] = new location[resources.length];
			for (int i=0;i<resources.length;i++){
				addresources[i] = new location();
				addresources[i].ipfrom = resources[i].ipfrom;
				addresources[i].ipto = resources[i].ipto;
				addresources[i].preferredlocation = resources[i].preferredlocation;
				addresources[i].longitude = resources[i].longitude;
				addresources[i].latitude = resources[i].latitude;
			}
			result = add_bulk_request(client, addresources);
		}
		return result;
	}
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);
	}
254905
public static base_responses add(nitro_service client, nspbr6 resources[]) throws Exception {
		base_responses result = null;
		if (resources != null && resources.length > 0) {
			nspbr6 addresources[] = new nspbr6[resources.length];
			for (int i=0;i<resources.length;i++){
				addresources[i] = new nspbr6();
				addresources[i].name = resources[i].name;
				addresources[i].td = resources[i].td;
				addresources[i].action = resources[i].action;
				addresources[i].srcipv6 = resources[i].srcipv6;
				addresources[i].srcipop = resources[i].srcipop;
				addresources[i].srcipv6val = resources[i].srcipv6val;
				addresources[i].srcport = resources[i].srcport;
				addresources[i].srcportop = resources[i].srcportop;
				addresources[i].srcportval = resources[i].srcportval;
				addresources[i].destipv6 = resources[i].destipv6;
				addresources[i].destipop = resources[i].destipop;
				addresources[i].destipv6val = resources[i].destipv6val;
				addresources[i].destport = resources[i].destport;
				addresources[i].destportop = resources[i].destportop;
				addresources[i].destportval = resources[i].destportval;
				addresources[i].srcmac = resources[i].srcmac;
				addresources[i].protocol = resources[i].protocol;
				addresources[i].protocolnumber = resources[i].protocolnumber;
				addresources[i].vlan = resources[i].vlan;
				addresources[i].Interface = resources[i].Interface;
				addresources[i].priority = resources[i].priority;
				addresources[i].state = resources[i].state;
				addresources[i].msr = resources[i].msr;
				addresources[i].monitor = resources[i].monitor;
				addresources[i].nexthop = resources[i].nexthop;
				addresources[i].nexthopval = resources[i].nexthopval;
				addresources[i].nexthopvlan = resources[i].nexthopvlan;
			}
			result = add_bulk_request(client, addresources);
		}
		return result;
	}
673996
public static base_responses add(nitro_service client, channel resources[]) throws Exception {
		base_responses result = null;
		if (resources != null && resources.length > 0) {
			channel addresources[] = new channel[resources.length];
			for (int i=0;i<resources.length;i++){
				addresources[i] = new channel();
				addresources[i].id = resources[i].id;
				addresources[i].ifnum = resources[i].ifnum;
				addresources[i].state = resources[i].state;
				addresources[i].mode = resources[i].mode;
				addresources[i].conndistr = resources[i].conndistr;
				addresources[i].macdistr = resources[i].macdistr;
				addresources[i].lamac = resources[i].lamac;
				addresources[i].speed = resources[i].speed;
				addresources[i].flowctl = resources[i].flowctl;
				addresources[i].hamonitor = resources[i].hamonitor;
				addresources[i].tagall = resources[i].tagall;
				addresources[i].trunk = resources[i].trunk;
				addresources[i].ifalias = resources[i].ifalias;
				addresources[i].throughput = resources[i].throughput;
				addresources[i].bandwidthhigh = resources[i].bandwidthhigh;
				addresources[i].bandwidthnormal = resources[i].bandwidthnormal;
			}
			result = add_bulk_request(client, addresources);
		}
		return result;
	}
548792
public static base_responses add(nitro_service client, vpnnexthopserver resources[]) throws Exception {
		base_responses result = null;
		if (resources != null && resources.length > 0) {
			vpnnexthopserver addresources[] = new vpnnexthopserver[resources.length];
			for (int i=0;i<resources.length;i++){
				addresources[i] = new vpnnexthopserver();
				addresources[i].name = resources[i].name;
				addresources[i].nexthopip = resources[i].nexthopip;
				addresources[i].nexthopport = resources[i].nexthopport;
				addresources[i].secure = resources[i].secure;
			}
			result = add_bulk_request(client, addresources);
		}
		return result;
	}
890498
public static base_responses add(nitro_service client, nspbr resources[]) throws Exception {
		base_responses result = null;
		if (resources != null && resources.length > 0) {
			nspbr addresources[] = new nspbr[resources.length];
			for (int i=0;i<resources.length;i++){
				addresources[i] = new nspbr();
				addresources[i].name = resources[i].name;
				addresources[i].action = resources[i].action;
				addresources[i].td = resources[i].td;
				addresources[i].srcip = resources[i].srcip;
				addresources[i].srcipop = resources[i].srcipop;
				addresources[i].srcipval = resources[i].srcipval;
				addresources[i].srcport = resources[i].srcport;
				addresources[i].srcportop = resources[i].srcportop;
				addresources[i].srcportval = resources[i].srcportval;
				addresources[i].destip = resources[i].destip;
				addresources[i].destipop = resources[i].destipop;
				addresources[i].destipval = resources[i].destipval;
				addresources[i].destport = resources[i].destport;
				addresources[i].destportop = resources[i].destportop;
				addresources[i].destportval = resources[i].destportval;
				addresources[i].nexthop = resources[i].nexthop;
				addresources[i].nexthopval = resources[i].nexthopval;
				addresources[i].iptunnel = resources[i].iptunnel;
				addresources[i].iptunnelname = resources[i].iptunnelname;
				addresources[i].srcmac = resources[i].srcmac;
				addresources[i].protocol = resources[i].protocol;
				addresources[i].protocolnumber = resources[i].protocolnumber;
				addresources[i].vlan = resources[i].vlan;
				addresources[i].Interface = resources[i].Interface;
				addresources[i].priority = resources[i].priority;
				addresources[i].msr = resources[i].msr;
				addresources[i].monitor = resources[i].monitor;
				addresources[i].state = resources[i].state;
			}
			result = add_bulk_request(client, addresources);
		}
		return result;
	}
75005
public static base_responses add(nitro_service client, dnstxtrec resources[]) throws Exception {
		base_responses result = null;
		if (resources != null && resources.length > 0) {
			dnstxtrec addresources[] = new dnstxtrec[resources.length];
			for (int i=0;i<resources.length;i++){
				addresources[i] = new dnstxtrec();
				addresources[i].domain = resources[i].domain;
				addresources[i].String = resources[i].String;
				addresources[i].ttl = resources[i].ttl;
			}
			result = add_bulk_request(client, addresources);
		}
		return result;
	}
610270
public static ns_configtemplate add(nitro_service client, ns_configtemplate resource) throws Exception
	{
		resource.validate("add");
		return ((ns_configtemplate[]) resource.perform_operation(client, "add"))[0];
	}
180683
public static base_responses add(nitro_service client, vpnvserver resources[]) throws Exception {
		base_responses result = null;
		if (resources != null && resources.length > 0) {
			vpnvserver addresources[] = new vpnvserver[resources.length];
			for (int i=0;i<resources.length;i++){
				addresources[i] = new vpnvserver();
				addresources[i].name = resources[i].name;
				addresources[i].servicetype = resources[i].servicetype;
				addresources[i].ipv46 = resources[i].ipv46;
				addresources[i].range = resources[i].range;
				addresources[i].port = resources[i].port;
				addresources[i].state = resources[i].state;
				addresources[i].authentication = resources[i].authentication;
				addresources[i].doublehop = resources[i].doublehop;
				addresources[i].maxaaausers = resources[i].maxaaausers;
				addresources[i].icaonly = resources[i].icaonly;
				addresources[i].downstateflush = resources[i].downstateflush;
				addresources[i].listenpolicy = resources[i].listenpolicy;
				addresources[i].listenpriority = resources[i].listenpriority;
				addresources[i].tcpprofilename = resources[i].tcpprofilename;
				addresources[i].httpprofilename = resources[i].httpprofilename;
				addresources[i].comment = resources[i].comment;
				addresources[i].appflowlog = resources[i].appflowlog;
				addresources[i].icmpvsrresponse = resources[i].icmpvsrresponse;
				addresources[i].netprofile = resources[i].netprofile;
				addresources[i].cginfrahomepageredirect = resources[i].cginfrahomepageredirect;
				addresources[i].maxloginattempts = resources[i].maxloginattempts;
				addresources[i].failedlogintimeout = resources[i].failedlogintimeout;
			}
			result = add_bulk_request(client, addresources);
		}
		return result;
	}
975889
public static base_response add(nitro_service client, snmpuser resource) throws Exception {
		snmpuser addresource = new snmpuser();
		addresource.name = resource.name;
		addresource.group = resource.group;
		addresource.authtype = resource.authtype;
		addresource.authpasswd = resource.authpasswd;
		addresource.privtype = resource.privtype;
		addresource.privpasswd = resource.privpasswd;
		return addresource.add_resource(client);
	}
191473
public static base_response enable(nitro_service client, nsip resource) throws Exception {
		nsip enableresource = new nsip();
		enableresource.ipaddress = resource.ipaddress;
		enableresource.td = resource.td;
		return enableresource.perform_operation(client,"enable");
	}
893492
public static base_response add(nitro_service client, snmpview resource) throws Exception {
		snmpview addresource = new snmpview();
		addresource.name = resource.name;
		addresource.subtree = resource.subtree;
		addresource.type = resource.type;
		return addresource.add_resource(client);
	}