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;
	}
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 ; }
Use this API to add nspbr resources.