Delete Linode Firewall Rule
Is their any way to delete linode firewall rule from linode-cli as per the support command line argument I can't see any argument to delete the update linode firewall rule.
linode-cli firewalls
1 Reply
It looks like you can only ACCEPT or DROP individual firewall rules via the cli:
https://www.linode.com/docs/api/networking/#firewall-rules-update
There is the option to delete your entire Firewall via the cli:
https://www.linode.com/docs/api/networking/#firewall-delete
But depending on the number of rules you have, that might not be the most elegant solution to your issue.
I looked into whether using the API as an alternative might be a better solution. It looks like rules are treated as a whole in the API. So if you want to do the same thing via API calls you should GET your rules here:
https://www.linode.com/docs/api/networking/#firewall-rules-list
After you get what you need, you would need to then PUT the full ruleset back at this endpoint:
https://www.linode.com/docs/api/networking/#firewall-rules-update
Hope that helps!
-Micah