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