I'm trying to use the override.remove command in Ansible to remove overrides for threat protections in a list.
If I run the following from CLI, it removes the override from the Basic profile:
set threat-protection uid 98969b14-2d75-0141-a880-5d1f5350e815 overrides.remove.1 "Basic"
However, when I try to run it from Ansible I get a message "Unrecognized parameter [overrides.remove.1]"
Here's my config:
uri:
url: "{{ checkpoint_api_root }}/set-threat-protection"
method: POST
headers:
Content-Type: application/json
Accept: application/json
X-chkp-sid: "{{ checkpoint_auth_sid }}"
body: '{"uid": "98969b14-2d75-0141-a880-5d1f5350e815", "overrides.remove.1": "Basic"}'
body_format: json
status_code: 200
Based on this postI tried breaking the command into brackets, but that usually resulted in an invalid JSON message.
I'm fairly new to Ansible and Check Point API, so there may be something obvious I'm missing. Any help is greatly appreciated!