url -k -s -u $key:$secret $URL/diagnostics/firewall/listRuleIds | jq
curl -k -s -u $key:$secret $URL/firewall/filter/get_rule?5ddcbf1f0688962629f1a2166ba2ab0c
jq '. | to_entries |.[].value["action","interface","direction","ipprotocol","protocol","gateway","categories"][] |= select(.selected == 1).value| .[].value'
{ "enabled": "1", "sequence": "1", "action": { "pass": "Pass" }, "quick": "1", "interface": {}, "direction": { "in": "In" }, "ipprotocol": { "inet": "IPv4" }, "protocol": { "any": "any" }, "source_net": "any", "source_not": "0", "source_port": "", "destination_net": "any", "destination_not": "0", "destination_port": "", "gateway": { "": "None" }, "log": "0", "categories": {}, "description": ""}