public static base_responses update ( nitro_service client , nspbr resources [ ] ) throws Exception { base_responses result = null ; if ( resources != null && resources . length > 0 ) { nspbr updateresources [ ] = new nspbr [ resources . length ] ; for ( int i = 0 ; i < resources . length ; i ++ ) { updateresources [ i ] = new nspbr ( ) ; updateresources [ i ] . name = resources [ i ] . name ; updateresources [ i ] . action = resources [ i ] . action ; updateresources [ i ] . srcip = resources [ i ] . srcip ; updateresources [ i ] . srcipop = resources [ i ] . srcipop ; updateresources [ i ] . srcipval = resources [ i ] . srcipval ; updateresources [ i ] . srcport = resources [ i ] . srcport ; updateresources [ i ] . srcportop = resources [ i ] . srcportop ; updateresources [ i ] . srcportval = resources [ i ] . srcportval ; updateresources [ i ] . destip = resources [ i ] . destip ; updateresources [ i ] . destipop = resources [ i ] . destipop ; updateresources [ i ] . destipval = resources [ i ] . destipval ; updateresources [ i ] . destport = resources [ i ] . destport ; updateresources [ i ] . destportop = resources [ i ] . destportop ; updateresources [ i ] . destportval = resources [ i ] . destportval ; updateresources [ i ] . nexthop = resources [ i ] . nexthop ; updateresources [ i ] . nexthopval = resources [ i ] . nexthopval ; updateresources [ i ] . iptunnel = resources [ i ] . iptunnel ; updateresources [ i ] . iptunnelname = resources [ i ] . iptunnelname ; updateresources [ i ] . srcmac = resources [ i ] . srcmac ; updateresources [ i ] . protocol = resources [ i ] . protocol ; updateresources [ i ] . protocolnumber = resources [ i ] . protocolnumber ; updateresources [ i ] . vlan = resources [ i ] . vlan ; updateresources [ i ] . Interface = resources [ i ] . Interface ; updateresources [ i ] . priority = resources [ i ] . priority ; updateresources [ i ] . msr = resources [ i ] . msr ; updateresources [ i ] . monitor = resources [ i ] . monitor ; } result = update_bulk_request ( client , updateresources ) ; } return result ; }
Use this API to update nspbr resources .