put
https://api.linode.com//networking/firewalls/rulesets/
Updates the label, description, and rules for a Rule Set. If the Rule Set is successfully updated, the changes apply to all firewalls that reference it.
-
If the Rule Set's
labelordescriptionfields are not provided in the update request, the existing values remain unchanged. -
When updating the
rules, you must include the entire final rules expression. This operation replaces all of a Rule Set'sinboundandoutboundwith the values specified in your request.
If the Rule Set was created by a managed service (is_service_defined is true), it can't be updated using a non-service account.
Permissions and scopes
To call this operation, you need the following:
-
OAuth scopes. Your user needs these scopes assigned. Learn more.
- Scopes:
firewall:read_write
- Scopes:
CLI
linode-cli firewalls ruleset-update 123 \
--label ruleset123 \
--description rulesetABC \
--rules '[{"action":"ACCEPT", "description":"ABC-NeT-RuleSet", "protocol": "TCP", "ports": "22-24, 80, 443, 6443", "addresses": {"ipv4": ["192.0.2.0/24", "198.51.100.2/32", "pl::vpcs:1234", "pl::vpcs:<current>"], "ipv6": ["2001:DB8::/128", "pl::vpcs:1234", "pl::vpcs:<current>"]}}]'