Cool, it shows the rule now 🙂
Now for the 1 million question - How to add a rule to said group...
The syntax is:
mgmt_cli add threat-exception layer "New Layer 1" rule-number 1 position 1 name "Exception Rule" track "Log" protected-scope "All_Internet" protection-or-site "Adware.a" --format json
I am assuming it would be something like:
mgmt_cli add threat-exception layer "Global Exceptions" rule-number 12 name "Test12" source-name "ohad-pc" service-name "smtp" destination "ohad-pc" protection-or-site "Anti-Virus" action "Inactive" track "Log"
However I am getting an error message:
code: "generic_err_invalid_parameter_name"
message: "Unrecognized parameter [service-name]"
Executed command failed. Changes are discarded.
And if I were to plan ahead, I think the best way to go would be to export the current 100+ rules into a csv, and use the batch flag like when using:
mgmt_cli add host --batch hosts.csv
I dont see in the URL any provided information in case I want to use a batch file instead of single commands...