Remove a specific rule from an ACL¶
Say that entry is no longer needed and it is safe to remove. That can be done
with a DELETE
request for the URL corresponding to its sequence number:
Command:
$ curl -f --cert ~/tnsr/tnsr-restconf-client.crt \
--key ~/tnsr/tnsr-restconf-client.key \
--cacert ~/tnsr/tnsr-restconf-CA.crt \
-X DELETE \
https://tnsr.example.com/restconf/data/netgate-acl:acl-config/acl-table/acl-list=blockbadhosts/acl-rules/acl-rule=10
Output: This does not produce any output if it completed successfully.
Retrieve the contents of the ACL again to confirm it was removed.