public static base_responses update ( nitro_service client , nsacl6 resources [ ] ) throws Exception { base_responses result = null ; if ( resources != null && resources . length > 0 ) { nsacl6 updateresources [ ] = new nsacl6 [ resources . length ] ; for ( int i = 0 ; i < resources . length ; i ++ ) { updateresources [ i ] = new nsacl6 ( ) ; updateresources [ i ] . acl6name = resources [ i ] . acl6name ; updateresources [ i ] . aclaction = resources [ i ] . aclaction ; updateresources [ i ] . srcipv6 = resources [ i ] . srcipv6 ; updateresources [ i ] . srcipop = resources [ i ] . srcipop ; updateresources [ i ] . srcipv6val = resources [ i ] . srcipv6val ; updateresources [ i ] . srcport = resources [ i ] . srcport ; updateresources [ i ] . srcportop = resources [ i ] . srcportop ; updateresources [ i ] . srcportval = resources [ i ] . srcportval ; updateresources [ i ] . destipv6 = resources [ i ] . destipv6 ; updateresources [ i ] . destipop = resources [ i ] . destipop ; updateresources [ i ] . destipv6val = resources [ i ] . destipv6val ; updateresources [ i ] . destport = resources [ i ] . destport ; updateresources [ i ] . destportop = resources [ i ] . destportop ; updateresources [ i ] . destportval = resources [ i ] . destportval ; updateresources [ i ] . srcmac = resources [ i ] . srcmac ; updateresources [ i ] . protocol = resources [ i ] . protocol ; updateresources [ i ] . protocolnumber = resources [ i ] . protocolnumber ; updateresources [ i ] . icmptype = resources [ i ] . icmptype ; updateresources [ i ] . icmpcode = resources [ i ] . icmpcode ; updateresources [ i ] . vlan = resources [ i ] . vlan ; updateresources [ i ] . Interface = resources [ i ] . Interface ; updateresources [ i ] . priority = resources [ i ] . priority ; updateresources [ i ] . established = resources [ i ] . established ; } result = update_bulk_request ( client , updateresources ) ; } return result ; }
Use this API to update nsacl6 resources .