<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: threat protection overrides in Ansible in Ansible</title>
    <link>https://community.checkpoint.com/t5/Ansible/threat-protection-overrides-in-Ansible/m-p/104265#M409</link>
    <description>&lt;P&gt;The correct json format of the payload is this:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;{
   "overrides":{
      "remove":[
         "Basic"
      ]
   },
   "uid":"98969b14-2d75-0141-a880-5d1f5350e815"
}&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Can you tell me why you are not using the Check Point collection of modules for ansible to do this?&lt;/P&gt;
&lt;P&gt;The latest collection is available here:&lt;BR /&gt;&lt;A href="https://galaxy.ansible.com/check_point/mgmt" target="_self"&gt;https://galaxy.ansible.com/check_point/mgmt&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;The documentation is available here:&lt;BR /&gt;&lt;A href="https://docs.ansible.com/ansible/latest/collections/check_point/mgmt/index.html#plugins-in-check-point-mgmt" target="_self"&gt;https://docs.ansible.com/ansible/latest/collections/check_point/mgmt/index.html#plugins-in-check-point-mgmt&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;The module to use for what you want to do is this one:&lt;BR /&gt;&lt;A href="https://docs.ansible.com/ansible/latest/collections/check_point/mgmt/cp_mgmt_threat_protection_override_module.html#ansible-collections-check-point-mgmt-cp-mgmt-threat-protection-override-module" target="_self"&gt;https://docs.ansible.com/ansible/latest/collections/check_point/mgmt/cp_mgmt_threat_protection_override_module.html#ansible-collections-check-point-mgmt-cp-mgmt-threat-protection-override-module&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 03 Dec 2020 20:44:04 GMT</pubDate>
    <dc:creator>Jim_Oqvist</dc:creator>
    <dc:date>2020-12-03T20:44:04Z</dc:date>
    <item>
      <title>threat protection overrides in Ansible</title>
      <link>https://community.checkpoint.com/t5/Ansible/threat-protection-overrides-in-Ansible/m-p/104256#M408</link>
      <description>&lt;P&gt;I'm trying to use the override.remove command in Ansible to remove overrides for threat protections in a list.&lt;/P&gt;&lt;P&gt;If I run the following from CLI, it removes the override from the Basic profile:&lt;/P&gt;&lt;P&gt;set threat-protection uid 98969b14-2d75-0141-a880-5d1f5350e815 overrides.remove.1 "Basic"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, when I try to run it from Ansible I get a message&amp;nbsp; "Unrecognized parameter [overrides.remove.1]"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here's my config:&lt;/P&gt;&lt;P&gt;uri:&lt;BR /&gt;url: "{{ checkpoint_api_root }}/set-threat-protection"&lt;BR /&gt;method: POST&lt;BR /&gt;headers:&lt;BR /&gt;Content-Type: application/json&lt;BR /&gt;Accept: application/json&lt;BR /&gt;X-chkp-sid: "{{ checkpoint_auth_sid }}"&lt;BR /&gt;body: '{"uid": "98969b14-2d75-0141-a880-5d1f5350e815", "overrides.remove.1": "Basic"}'&lt;BR /&gt;body_format: json&lt;BR /&gt;status_code: 200&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Based on &lt;A href="https://community.checkpoint.com/t5/Ansible/How-to-add-host-to-existing-rule-via-ansible/td-p/27470" target="_self"&gt;this post&lt;/A&gt;I tried breaking the command into brackets, but that usually resulted in an invalid JSON message.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm fairly new to Ansible and Check Point API, so there may be something obvious I'm missing. Any help is greatly appreciated!&lt;/P&gt;</description>
      <pubDate>Thu, 03 Dec 2020 19:50:05 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Ansible/threat-protection-overrides-in-Ansible/m-p/104256#M408</guid>
      <dc:creator>khillock_px</dc:creator>
      <dc:date>2020-12-03T19:50:05Z</dc:date>
    </item>
    <item>
      <title>Re: threat protection overrides in Ansible</title>
      <link>https://community.checkpoint.com/t5/Ansible/threat-protection-overrides-in-Ansible/m-p/104265#M409</link>
      <description>&lt;P&gt;The correct json format of the payload is this:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;{
   "overrides":{
      "remove":[
         "Basic"
      ]
   },
   "uid":"98969b14-2d75-0141-a880-5d1f5350e815"
}&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Can you tell me why you are not using the Check Point collection of modules for ansible to do this?&lt;/P&gt;
&lt;P&gt;The latest collection is available here:&lt;BR /&gt;&lt;A href="https://galaxy.ansible.com/check_point/mgmt" target="_self"&gt;https://galaxy.ansible.com/check_point/mgmt&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;The documentation is available here:&lt;BR /&gt;&lt;A href="https://docs.ansible.com/ansible/latest/collections/check_point/mgmt/index.html#plugins-in-check-point-mgmt" target="_self"&gt;https://docs.ansible.com/ansible/latest/collections/check_point/mgmt/index.html#plugins-in-check-point-mgmt&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;The module to use for what you want to do is this one:&lt;BR /&gt;&lt;A href="https://docs.ansible.com/ansible/latest/collections/check_point/mgmt/cp_mgmt_threat_protection_override_module.html#ansible-collections-check-point-mgmt-cp-mgmt-threat-protection-override-module" target="_self"&gt;https://docs.ansible.com/ansible/latest/collections/check_point/mgmt/cp_mgmt_threat_protection_override_module.html#ansible-collections-check-point-mgmt-cp-mgmt-threat-protection-override-module&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 03 Dec 2020 20:44:04 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Ansible/threat-protection-overrides-in-Ansible/m-p/104265#M409</guid>
      <dc:creator>Jim_Oqvist</dc:creator>
      <dc:date>2020-12-03T20:44:04Z</dc:date>
    </item>
    <item>
      <title>Re: threat protection overrides in Ansible</title>
      <link>https://community.checkpoint.com/t5/Ansible/threat-protection-overrides-in-Ansible/m-p/105189#M412</link>
      <description>&lt;P&gt;Thanks&amp;nbsp;&lt;a href="https://community.checkpoint.com/t5/user/viewprofilepage/user-id/31"&gt;@Jim_Oqvist&lt;/a&gt;&amp;nbsp;; I ended up finding the same solution in another article prior to seeing your reply, but I appreciate the help.&lt;/P&gt;&lt;P&gt;I don't have an answer as to why we're not using the Check Point modules, but I'll review the links provided.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 11 Dec 2020 21:49:40 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Ansible/threat-protection-overrides-in-Ansible/m-p/105189#M412</guid>
      <dc:creator>khillock_px</dc:creator>
      <dc:date>2020-12-11T21:49:40Z</dc:date>
    </item>
  </channel>
</rss>

