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