public static base_responses update ( nitro_service client , nsip resources [ ] ) throws Exception { base_responses result = null ; if ( resources != null && resources . length > 0 ) { nsip updateresources [ ] = new nsip [ resources . length ] ; for ( int i = 0 ; i < resources . length ; i ++ ) { updateresources [ i ] = new nsip ( ) ; updateresources [ i ] . ipaddress = resources [ i ] . ipaddress ; updateresources [ i ] . td = resources [ i ] . td ; updateresources [ i ] . netmask = resources [ i ] . netmask ; updateresources [ i ] . arp = resources [ i ] . arp ; updateresources [ i ] . icmp = resources [ i ] . icmp ; updateresources [ i ] . vserver = resources [ i ] . vserver ; updateresources [ i ] . telnet = resources [ i ] . telnet ; updateresources [ i ] . ftp = resources [ i ] . ftp ; updateresources [ i ] . gui = resources [ i ] . gui ; updateresources [ i ] . ssh = resources [ i ] . ssh ; updateresources [ i ] . snmp = resources [ i ] . snmp ; updateresources [ i ] . mgmtaccess = resources [ i ] . mgmtaccess ; updateresources [ i ] . restrictaccess = resources [ i ] . restrictaccess ; updateresources [ i ] . dynamicrouting = resources [ i ] . dynamicrouting ; updateresources [ i ] . ospf = resources [ i ] . ospf ; updateresources [ i ] . bgp = resources [ i ] . bgp ; updateresources [ i ] . rip = resources [ i ] . rip ; updateresources [ i ] . hostroute = resources [ i ] . hostroute ; updateresources [ i ] . hostrtgw = resources [ i ] . hostrtgw ; updateresources [ i ] . metric = resources [ i ] . metric ; updateresources [ i ] . vserverrhilevel = resources [ i ] . vserverrhilevel ; updateresources [ i ] . ospflsatype = resources [ i ] . ospflsatype ; updateresources [ i ] . ospfarea = resources [ i ] . ospfarea ; updateresources [ i ] . vrid = resources [ i ] . vrid ; updateresources [ i ] . icmpresponse = resources [ i ] . icmpresponse ; updateresources [ i ] . arpresponse = resources [ i ] . arpresponse ; } result = update_bulk_request ( client , updateresources ) ; } return result ; }
Use this API to update nsip resources .