public static base_response update ( nitro_service client , nsacl resource ) throws Exception { nsacl updateresource = new nsacl ( ) ; updateresource . aclname = resource . aclname ; updateresource . aclaction = resource . aclaction ; updateresource . srcip = resource . srcip ; updateresource . srcipop = resource . srcipop ; updateresource . srcipval = resource . srcipval ; updateresource . srcport = resource . srcport ; updateresource . srcportop = resource . srcportop ; updateresource . srcportval = resource . srcportval ; updateresource . destip = resource . destip ; updateresource . destipop = resource . destipop ; updateresource . destipval = resource . destipval ; updateresource . destport = resource . destport ; updateresource . destportop = resource . destportop ; updateresource . destportval = resource . destportval ; updateresource . srcmac = resource . srcmac ; updateresource . protocol = resource . protocol ; updateresource . protocolnumber = resource . protocolnumber ; updateresource . icmptype = resource . icmptype ; updateresource . icmpcode = resource . icmpcode ; updateresource . vlan = resource . vlan ; updateresource . Interface = resource . Interface ; updateresource . priority = resource . priority ; updateresource . logstate = resource . logstate ; updateresource . ratelimit = resource . ratelimit ; updateresource . established = resource . established ; return updateresource . update_resource ( client ) ; }
Use this API to update nsacl .