REST API Call "PUT" how to Update packet filter rule with IP address and not to replace existing
Hello F5 Developers Community
I have an Issue with f5 API ?
the use case is that i need to add IP address to the Packet filter Policy and not to overwrite to the existing IP addresses through REST API Call
The following API Call that I Use
"curl -sk -u 'username****:password*****' -H "Content-Type: application/json" -X PUT -d '{"action":"discard","order":5 ,"rule":"(src host 10.10.10.10 or src host 20.20.20.20)"}' https://f5IPAddress/mgmt/tm/net/packet-filter/~Common~HQ_DENY_ACL?ver=15.1.0 "
And I got the below response:
"{"kind":"tm:net:packet-filter:packet-filterstate","name":"HQ_DENY_ACL","partition":"Common","fullPath":"/Common/HQ_DENY_ACL","generation":8435930,"selfLink":"https://localhost/mgmt/tm/net/packet-filter/~Common~HQ_DENY_ACL?ver=15.1.0","action":"discard","logging":"disabled","order":5,"rule":"(src host 10.10.10.10 or src host 20.20.20.20)"}"
That Shows IP addresses have been added successfuly added if i repeat action with different IPs they overwrite the existing from first action,
I Appreciate if any can support