public static base_response update ( nitro_service client , nspbr resource ) throws Exception { nspbr updateresource = new nspbr ( ) ; updateresource . name = resource . name ; updateresource . action = resource . action ; 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 . nexthop = resource . nexthop ; updateresource . nexthopval = resource . nexthopval ; updateresource . iptunnel = resource . iptunnel ; updateresource . iptunnelname = resource . iptunnelname ; updateresource . srcmac = resource . srcmac ; updateresource . protocol = resource . protocol ; updateresource . protocolnumber = resource . protocolnumber ; updateresource . vlan = resource . vlan ; updateresource . Interface = resource . Interface ; updateresource . priority = resource . priority ; updateresource . msr = resource . msr ; updateresource . monitor = resource . monitor ; return updateresource . update_resource ( client ) ; }
Use this API to update nspbr .