<?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: &amp;quot;Checkpoint device returned error 404 with message&amp;quot; when installing policy through Ans in Ansible</title>
    <link>https://community.checkpoint.com/t5/Ansible/quot-Checkpoint-device-returned-error-404-with-message-quot-when/m-p/113931#M481</link>
    <description>&lt;P&gt;What is the best way or how can I dump all groups, acess rules, NATs to try to find that UID?&lt;BR /&gt;&lt;BR /&gt;I was unable to find any api.elg in $FWDIR/log/.&lt;BR /&gt;Edit: Was looking at the wrong direction. All I managed to find was when it first started pretty much.&lt;/P&gt;</description>
    <pubDate>Thu, 18 Mar 2021 14:18:24 GMT</pubDate>
    <dc:creator>Hash1</dc:creator>
    <dc:date>2021-03-18T14:18:24Z</dc:date>
    <item>
      <title>"Checkpoint device returned error 404 with message" when installing policy through Ansible</title>
      <link>https://community.checkpoint.com/t5/Ansible/quot-Checkpoint-device-returned-error-404-with-message-quot-when/m-p/112978#M447</link>
      <description>&lt;P&gt;I have created some scripts to run when we need to install a policy based on their name.&lt;BR /&gt;Let's say we have a policy called "Birds" and other "Reptiles".&lt;/P&gt;&lt;P&gt;I have pretty much the same script for Birds and Reptiles, check the diff:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;root@server:/path/to/whatever$ diff policy_Birds.yml policy_Reptiles.yml
2c2
&amp;lt; - name: Policy Birds
---
&amp;gt; - name: Policy Reptiles
9c9
&amp;lt; policy_package: Birds
---
&amp;gt; policy_package: Reptiles
18,20c18,20
&amp;lt; to: hello@email.com
&amp;lt; subject: "Playbook: Birds FAILED"
&amp;lt; body: "Policy Birds Failed"
---
&amp;gt; to: hello2@email.com
&amp;gt; subject: "Playbook: Reptiles  FAILED"
&amp;gt; body: "Policy Reptiles Failed"&lt;/LI-CODE&gt;&lt;P&gt;But when I run the Reptiles yml I get&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;fatal: [IP]: FAILED! =&amp;gt; {"changed": false, "msg": "Checkpoint device returned error 404 with message {'code': 'generic_err_object_not_found', 'message': 'Requested object [bda64744-c5bf-42f7-b052-36d1aa5757db] not found'} Unpublished changes were discarded"}&lt;/LI-CODE&gt;&lt;P&gt;&lt;STRONG&gt;This doesn't happen to Birds.&lt;/STRONG&gt;&lt;BR /&gt;I triple checked all the names, mainly at "policy_package" to see If I didn't mistyped something. But I'd like to say that it used to work a week prior to that. The only change is that we changed the apiuser on the firewall. From a local created account to a RADIUS account.&lt;/P&gt;&lt;P&gt;Here are some of the "codes and configs" we are using:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;cat policy_Birds.yml
---
- name: Policy Birds
  hosts: check_point
  connection: httpapi
  tasks:
    - name: Something
      check_point.mgmt.cp_mgmt_install_policy:
        access: true
        policy_package: Birds
        threat_prevention: true
      ignore_errors: True
      register: result
    - name: mail result
      mail:
        host: smtp.server.goes.here
        port: 25
        from: ansible@domain
        to: hello@email.com
        subject: "Birds FAILED"
        body: "Something something.. not relevant"
      delegate_to: localhost
      when: result is failed&lt;/LI-CODE&gt;&lt;P&gt;Command being used to run&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;ansible-playbook -i hosts --vault-id checkpoint@ansible-vault  policy_Birds.yml -vvv

Or policy_Reptiles.yml&lt;/LI-CODE&gt;&lt;P&gt;Hosts&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;ansible-vault view --vault-id checkpoint@ansible-vault hosts
[check_point]
IP
[check_point:vars]
ansible_httpapi_use_ssl=True
ansible_httpapi_validate_certs=False
ansible_user=RADIUS_USER
ansible_password=ULTRASECRETPASSWORD
ansible_network_os=check_point.mgmt.checkpoint&lt;/LI-CODE&gt;&lt;P&gt;Ansible Version:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;ansible --version
ansible 2.9.16
  config file = /etc/ansible/ansible.cfg
  configured module search path = ['/root/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']
  ansible python module location = /usr/lib/python3.6/site-packages/ansible
  executable location = /bin/ansible
  python version = 3.6.8 (default, Aug 18 2020, 08:33:21) [GCC 8.3.1 20191121 (Red Hat 8.3.1-5)]&lt;/LI-CODE&gt;&lt;P&gt;Said error:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;TASK [taskname] *******************************************************
fatal: [IP]: FAILED! =&amp;gt; {"changed": false, "msg": "Checkpoint device returned error 404 with message {'code': 'generic_err_object_not_found', 'message': 'Requested object [bda64744-c5bf-42f7-b052-36d1aa5757db] not found'} Unpublished changes were discarded"}
...ignoring&lt;/LI-CODE&gt;&lt;P&gt;Working on the other guy:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;TASK [Instalar politica] *******************************************************
changed: [IP]&lt;/LI-CODE&gt;&lt;P&gt;Permissions:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;-rw-rw-r--.  1 root    root      708 Mar 10 09:43 policy_Birds.yml
-rw-rw-r--.  1 root    root      719 Jul 24  2020 policy_Reptiles.yml
-rw-rw-r--.  1 root    root      607 Mar  9 15:47 verify_Internet.yml&lt;/LI-CODE&gt;&lt;P&gt;cpinfo -y all:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;cpinfo -y all

This is Check Point CPinfo Build 914000202 for GAIA
[IDA]
        No hotfixes..

[CPFC]
        HOTFIX_R80_30_JUMBO_HF_MAIN     Take:  215

[MGMT]
        HOTFIX_R80_30_JUMBO_HF_MAIN     Take:  215

[FW1]
        HOTFIX_R80_30_JUMBO_HF_MAIN     Take:  215

FW1 build number:
This is Check Point Security Management Server R80.30 - Build 031
This is Check Point's software version R80.30 - Build 205

[SecurePlatform]
        HOTFIX_GOGO_LT_HEAT_JHF Take:  215

[CPinfo]
        No hotfixes..

[DIAG]
        No hotfixes..

[Reporting Module]
        HOTFIX_R80_30_JUMBO_HF_MAIN     Take:  215

[CPuepm]
        HOTFIX_R80_30_JUMBO_HF_MAIN     Take:  215

[VSEC]
        HOTFIX_R80_30_JUMBO_HF_MAIN     Take:  215

[SmartLog]
        HOTFIX_R80_30_JUMBO_HF_MAIN     Take:  215

[R7520CMP]
        No hotfixes..

[R7540CMP]
        No hotfixes..

[R76CMP]
        HOTFIX_R80_30_JHF_COMP  Take:  215

[SFWR77CMP]
        No hotfixes..

[R77CMP]
        HOTFIX_R80_30_JHF_COMP  Take:  215

[R75CMP]
        No hotfixes..

[NGXCMP]
        No hotfixes..

[EdgeCmp]
        No hotfixes..

[SFWCMP]
        No hotfixes..

[FLICMP]
        No hotfixes..

[SFWR75CMP]
        No hotfixes..

[MGMTAPI]
        No hotfixes..

[CPUpdates]
        BUNDLE_HCP_AUTOUPDATE   Take:  24
        BUNDLE_INFRA_AUTOUPDATE Take:  39
        BUNDLE_DEP_INSTALLER_AUTOUPDATE Take:  20
        BUNDLE_R80_30_JUMBO_HF_MAIN_gogoKernel  Take:  215

[SFWR80CMP]
        No hotfixes..

[CPDepInst]
        No hotfixes..

[AutoUpdater]
        No hotfixes..

[hcp_wrapper]
        HOTFIX_HCP_AUTOUPDATE&lt;/LI-CODE&gt;&lt;P&gt;&lt;BR /&gt;Oh yeah, I almost forgot. I even made a new script to verify policy on Reptiles (the one with problem) And it DID work:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt; cat verify_Reptiles.yml
---
- name: Verify Reptiles
  hosts: check_point
  connection: httpapi
  tasks:
    - name: verify-policy
      cp_mgmt_verify_policy:
        policy_package: Reptiles
      register: result&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;That's it. HELPPPPP&lt;/P&gt;</description>
      <pubDate>Wed, 10 Mar 2021 13:18:31 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Ansible/quot-Checkpoint-device-returned-error-404-with-message-quot-when/m-p/112978#M447</guid>
      <dc:creator>Hash1</dc:creator>
      <dc:date>2021-03-10T13:18:31Z</dc:date>
    </item>
    <item>
      <title>Re: "Checkpoint device returned error 404 with message" when installing policy through Ans</title>
      <link>https://community.checkpoint.com/t5/Ansible/quot-Checkpoint-device-returned-error-404-with-message-quot-when/m-p/113364#M463</link>
      <description>&lt;P&gt;Your playbooks are missing a target for install policy--something required for a policy installation.&lt;BR /&gt;It needs to be one or more gateway objects.&lt;/P&gt;</description>
      <pubDate>Sat, 13 Mar 2021 00:02:30 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Ansible/quot-Checkpoint-device-returned-error-404-with-message-quot-when/m-p/113364#M463</guid>
      <dc:creator>PhoneBoy</dc:creator>
      <dc:date>2021-03-13T00:02:30Z</dc:date>
    </item>
    <item>
      <title>Re: "Checkpoint device returned error 404 with message" when installing policy through Ans</title>
      <link>https://community.checkpoint.com/t5/Ansible/quot-Checkpoint-device-returned-error-404-with-message-quot-when/m-p/113384#M466</link>
      <description>&lt;P&gt;Phoneboy makes very legit point...seems like indeed you are missing a policy install target, hence why it fails.&lt;/P&gt;
&lt;P&gt;Andy&lt;/P&gt;</description>
      <pubDate>Sat, 13 Mar 2021 10:56:53 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Ansible/quot-Checkpoint-device-returned-error-404-with-message-quot-when/m-p/113384#M466</guid>
      <dc:creator>the_rock</dc:creator>
      <dc:date>2021-03-13T10:56:53Z</dc:date>
    </item>
    <item>
      <title>Re: "Checkpoint device returned error 404 with message" when installing policy through Ans</title>
      <link>https://community.checkpoint.com/t5/Ansible/quot-Checkpoint-device-returned-error-404-with-message-quot-when/m-p/113553#M468</link>
      <description>&lt;P&gt;That does not explain how installing policy on Birds works just fine.&lt;BR /&gt;&lt;BR /&gt;I will try it at night today and let you know how it went.&lt;/P&gt;</description>
      <pubDate>Mon, 15 Mar 2021 14:17:20 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Ansible/quot-Checkpoint-device-returned-error-404-with-message-quot-when/m-p/113553#M468</guid>
      <dc:creator>Hash1</dc:creator>
      <dc:date>2021-03-15T14:17:20Z</dc:date>
    </item>
    <item>
      <title>Re: "Checkpoint device returned error 404 with message" when installing policy through Ans</title>
      <link>https://community.checkpoint.com/t5/Ansible/quot-Checkpoint-device-returned-error-404-with-message-quot-when/m-p/113666#M472</link>
      <description>&lt;LI-CODE lang="markup"&gt;myuser@ansible-server:/path/to/script$ ls -la | grep _new
-rw-rw-r--.  1 root    root      732 Mar 15 19:33 install_reptiles_new.yml&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;myuser@ansible-server:/path/to/script $ cat install_reptiles_new.yml
---
- name: Internet
  hosts: check_point
  connection: httpapi
  tasks:
    - name: Install Reptiles
      check_point.mgmt.cp_mgmt_install_policy:
        access: true
        policy_package: Reptiles
        targets:
        - 255.255.255.255
        threat_prevention: false
      ignore_errors: true
      register: result&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;Of course the target IP is not 255 and so on, I just used the Cluster IP. This is the IP that shows on SmartConsole, yada yada.&lt;BR /&gt;Same error.&lt;/P&gt;</description>
      <pubDate>Tue, 16 Mar 2021 13:32:07 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Ansible/quot-Checkpoint-device-returned-error-404-with-message-quot-when/m-p/113666#M472</guid>
      <dc:creator>Hash1</dc:creator>
      <dc:date>2021-03-16T13:32:07Z</dc:date>
    </item>
    <item>
      <title>Re: "Checkpoint device returned error 404 with message" when installing policy through Ans</title>
      <link>https://community.checkpoint.com/t5/Ansible/quot-Checkpoint-device-returned-error-404-with-message-quot-when/m-p/113667#M473</link>
      <description>&lt;P&gt;Please refer to my answer to Phoneboy.&lt;/P&gt;</description>
      <pubDate>Tue, 16 Mar 2021 13:32:31 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Ansible/quot-Checkpoint-device-returned-error-404-with-message-quot-when/m-p/113667#M473</guid>
      <dc:creator>Hash1</dc:creator>
      <dc:date>2021-03-16T13:32:31Z</dc:date>
    </item>
    <item>
      <title>Re: "Checkpoint device returned error 404 with message" when installing policy through Ans</title>
      <link>https://community.checkpoint.com/t5/Ansible/quot-Checkpoint-device-returned-error-404-with-message-quot-when/m-p/113699#M474</link>
      <description>&lt;P&gt;Use the gateway/cluster name (not IP address).&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 16 Mar 2021 16:43:32 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Ansible/quot-Checkpoint-device-returned-error-404-with-message-quot-when/m-p/113699#M474</guid>
      <dc:creator>PhoneBoy</dc:creator>
      <dc:date>2021-03-16T16:43:32Z</dc:date>
    </item>
    <item>
      <title>Re: "Checkpoint device returned error 404 with message" when installing policy through Ans</title>
      <link>https://community.checkpoint.com/t5/Ansible/quot-Checkpoint-device-returned-error-404-with-message-quot-when/m-p/113718#M475</link>
      <description>&lt;LI-CODE lang="markup"&gt;myuser@ansible-server:/path/to/script $ cat install_reptiles_new.yml
---
- name: Internet
  hosts: check_point
  connection: httpapi
  tasks:
    - name: Install Reptiles
      check_point.mgmt.cp_mgmt_install_policy:
        access: true
        policy_package: Reptiles
        targets:
        - Reptiles
        threat_prevention: false
      ignore_errors: true
      register: result&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I get&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;"msg": "Checkpoint device returned error 400 with message {'code': 'generic_err_invalid_parameter', 'message': 'Invalid parameter for [targets]. Input installation target [Reptiles] does not exist, or is not an installable target'} Unpublished changes were discarded"
}&lt;/LI-CODE&gt;</description>
      <pubDate>Tue, 16 Mar 2021 19:54:53 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Ansible/quot-Checkpoint-device-returned-error-404-with-message-quot-when/m-p/113718#M475</guid>
      <dc:creator>Hash1</dc:creator>
      <dc:date>2021-03-16T19:54:53Z</dc:date>
    </item>
    <item>
      <title>Re: "Checkpoint device returned error 404 with message" when installing policy through Ans</title>
      <link>https://community.checkpoint.com/t5/Ansible/quot-Checkpoint-device-returned-error-404-with-message-quot-when/m-p/113731#M476</link>
      <description>&lt;P&gt;You need to use the name of the gateway/cluster object the policy package is to be installed on.&lt;BR /&gt;If this is what you've done, I recommend engaging with the TAC.&lt;/P&gt;</description>
      <pubDate>Tue, 16 Mar 2021 23:22:15 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Ansible/quot-Checkpoint-device-returned-error-404-with-message-quot-when/m-p/113731#M476</guid>
      <dc:creator>PhoneBoy</dc:creator>
      <dc:date>2021-03-16T23:22:15Z</dc:date>
    </item>
    <item>
      <title>Re: "Checkpoint device returned error 404 with message" when installing policy through Ans</title>
      <link>https://community.checkpoint.com/t5/Ansible/quot-Checkpoint-device-returned-error-404-with-message-quot-when/m-p/113807#M477</link>
      <description>&lt;P&gt;I'll be contacting CP through the TAC.&lt;BR /&gt;I have a quick question, how do I check the UID of my policy?&lt;/P&gt;</description>
      <pubDate>Wed, 17 Mar 2021 12:20:55 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Ansible/quot-Checkpoint-device-returned-error-404-with-message-quot-when/m-p/113807#M477</guid>
      <dc:creator>Hash1</dc:creator>
      <dc:date>2021-03-17T12:20:55Z</dc:date>
    </item>
    <item>
      <title>Re: "Checkpoint device returned error 404 with message" when installing policy through Ans</title>
      <link>https://community.checkpoint.com/t5/Ansible/quot-Checkpoint-device-returned-error-404-with-message-quot-when/m-p/113848#M478</link>
      <description>&lt;P&gt;It comes as part of the output of "show policy-package name Foobar" command.&lt;/P&gt;</description>
      <pubDate>Wed, 17 Mar 2021 20:16:37 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Ansible/quot-Checkpoint-device-returned-error-404-with-message-quot-when/m-p/113848#M478</guid>
      <dc:creator>PhoneBoy</dc:creator>
      <dc:date>2021-03-17T20:16:37Z</dc:date>
    </item>
    <item>
      <title>Re: "Checkpoint device returned error 404 with message" when installing policy through Ans</title>
      <link>https://community.checkpoint.com/t5/Ansible/quot-Checkpoint-device-returned-error-404-with-message-quot-when/m-p/113852#M479</link>
      <description>&lt;P&gt;This may be a silly question, but can you find any references to&amp;nbsp;bda64744-c5bf-42f7-b052-36d1aa5757db in the problem policy? Based on the error, it sounds like something in the problem policy is trying (and failing) to reference it, and nothing in the working policy references it.&lt;/P&gt;
&lt;P&gt;I would dump all of your groups and groups-with-exclusions, as well as all of the access rules in every layer and all of the NAT rules in the policy package, then search the resulting data for that UUID. It may also be worth looking for the UUID in $FWDIR/log/api.elg* to see if you can find the API request triggering the failure.&lt;/P&gt;</description>
      <pubDate>Wed, 17 Mar 2021 20:32:14 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Ansible/quot-Checkpoint-device-returned-error-404-with-message-quot-when/m-p/113852#M479</guid>
      <dc:creator>Bob_Zimmerman</dc:creator>
      <dc:date>2021-03-17T20:32:14Z</dc:date>
    </item>
    <item>
      <title>Re: "Checkpoint device returned error 404 with message" when installing policy through Ans</title>
      <link>https://community.checkpoint.com/t5/Ansible/quot-Checkpoint-device-returned-error-404-with-message-quot-when/m-p/113928#M480</link>
      <description>&lt;P&gt;show package name Reptiles&lt;BR /&gt;Worked for me. I got the UID and tested with verify. Will test at night an install using the UID as a target. Meanwhile our partner is engaging with a TAC for us.&lt;/P&gt;</description>
      <pubDate>Thu, 18 Mar 2021 12:58:28 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Ansible/quot-Checkpoint-device-returned-error-404-with-message-quot-when/m-p/113928#M480</guid>
      <dc:creator>Hash1</dc:creator>
      <dc:date>2021-03-18T12:58:28Z</dc:date>
    </item>
    <item>
      <title>Re: "Checkpoint device returned error 404 with message" when installing policy through Ans</title>
      <link>https://community.checkpoint.com/t5/Ansible/quot-Checkpoint-device-returned-error-404-with-message-quot-when/m-p/113931#M481</link>
      <description>&lt;P&gt;What is the best way or how can I dump all groups, acess rules, NATs to try to find that UID?&lt;BR /&gt;&lt;BR /&gt;I was unable to find any api.elg in $FWDIR/log/.&lt;BR /&gt;Edit: Was looking at the wrong direction. All I managed to find was when it first started pretty much.&lt;/P&gt;</description>
      <pubDate>Thu, 18 Mar 2021 14:18:24 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Ansible/quot-Checkpoint-device-returned-error-404-with-message-quot-when/m-p/113931#M481</guid>
      <dc:creator>Hash1</dc:creator>
      <dc:date>2021-03-18T14:18:24Z</dc:date>
    </item>
    <item>
      <title>Re: "Checkpoint device returned error 404 with message" when installing policy through Ans</title>
      <link>https://community.checkpoint.com/t5/Ansible/quot-Checkpoint-device-returned-error-404-with-message-quot-when/m-p/113956#M482</link>
      <description>&lt;P&gt;This should work for groups:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;( apiCommand="show groups"
mgmt_cli login read-only true -r true &amp;gt; sessionFile.txt
firstJSON=$(mgmt_cli -s sessionFile.txt --format json ${apiCommand} details-level full limit 500)
echo "${firstJSON}" | jq -c '.objects[]|.'
numberOfObjects=$(echo "${firstJSON}" | jq ".total")
offset=500
echo "${numberOfObjects} objects to export." &amp;gt;&amp;amp;2
while [ $offset -lt $numberOfObjects ]
do echo "Exporting up to $(($offset+500))" &amp;gt;&amp;amp;2
mgmt_cli -s sessionFile.txt --format json ${apiCommand} details-level full limit 500 offset ${offset} | jq -c '.objects[]|.'
offset=$(($offset+500))
done
mgmt_cli -s sessionFile.txt logout&amp;gt;/dev/null
/bin/rm sessionFile.txt ) &amp;gt; output.json&lt;/LI-CODE&gt;
&lt;P&gt;The value of apiCommand in the top line and the name "output.json" in the bottom should be modified for each category of thing you want to see. I think the others you would need to use are "show groups-with-exclusion" and "show service-groups".&lt;/P&gt;
&lt;P&gt;For the rules, I think the script above would need a little modification. apiCommand would be "show access-rulebase name &amp;lt;layer name&amp;gt;", and "show nat-rulebase package &amp;lt;policy package name&amp;gt;". If the layer name or policy package name have spaces in them, you will need to quote-delimit them. The quotes will probably need to be escaped. You will also need to change the two instances of&amp;nbsp;'.objects[]|.' to&amp;nbsp;'.rulebase[]|.'. I think it should work otherwise.&lt;/P&gt;
&lt;P&gt;Once you have all the JSON files, it should be relatively simple to tell whether that UUID shows up in them:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;grep bda64744-c5bf-42f7-b052-36d1aa5757db *.json&lt;/LI-CODE&gt;</description>
      <pubDate>Thu, 18 Mar 2021 15:33:25 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Ansible/quot-Checkpoint-device-returned-error-404-with-message-quot-when/m-p/113956#M482</guid>
      <dc:creator>Bob_Zimmerman</dc:creator>
      <dc:date>2021-03-18T15:33:25Z</dc:date>
    </item>
    <item>
      <title>Re: "Checkpoint device returned error 404 with message" when installing policy through Ans</title>
      <link>https://community.checkpoint.com/t5/Ansible/quot-Checkpoint-device-returned-error-404-with-message-quot-when/m-p/114005#M483</link>
      <description>&lt;P&gt;show groups, groups-with-exclusion, service-groups scripts are working just fine.&lt;BR /&gt;Tested one for show access-rulebase name &amp;lt;layer name&amp;gt; with a layer that doesn't have space on it and worked. I will be creating the rest of the outputs which will take a bit of time because we have a bunch of layers. I'll be checking even for layers not related to Reptiles just to make sure.&lt;BR /&gt;After that will do for nat and the grep to see if we can get that weird UID that "doesn't exist".&lt;BR /&gt;&lt;BR /&gt;Thanks a lot Bob! Will reply again when we're done.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Edit:I'm sorry for my ignorance, but how do I escape the quotation marks?&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;( apiCommand="show access-rulebase name \"layer one\""

or
( apiCommand=\"show access-rulebase name "layer one"\"

Doesn't seem to work.&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 18 Mar 2021 18:29:14 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Ansible/quot-Checkpoint-device-returned-error-404-with-message-quot-when/m-p/114005#M483</guid>
      <dc:creator>Hash1</dc:creator>
      <dc:date>2021-03-18T18:29:14Z</dc:date>
    </item>
    <item>
      <title>Re: "Checkpoint device returned error 404 with message" when installing policy through Ans</title>
      <link>https://community.checkpoint.com/t5/Ansible/quot-Checkpoint-device-returned-error-404-with-message-quot-when/m-p/114009#M484</link>
      <description>&lt;P&gt;This should work and may be the easiest fix:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;( apiCommand='show access-rulebase name "layer one"'&lt;/LI-CODE&gt;
&lt;P&gt;To be clear, I'm not sure the reference will show up. I just find it really, really weird that the actual error message you're getting when you try to install the policy says it can't find a particular UUID. Where is that UUID coming from? As far as I'm aware, Ansible shouldn't just be making up UUIDs and asking for data about them, so surely it must come from somewhere in the Check Point API server, right?&lt;/P&gt;
&lt;P&gt;Seems like wherever it comes from will have more answers about why it comes from there, which may lead to why you can't push the policy.&lt;/P&gt;
&lt;P&gt;Though on a related note, can you push the problem policy from SmartConsole?&lt;/P&gt;</description>
      <pubDate>Thu, 18 Mar 2021 18:45:45 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Ansible/quot-Checkpoint-device-returned-error-404-with-message-quot-when/m-p/114009#M484</guid>
      <dc:creator>Bob_Zimmerman</dc:creator>
      <dc:date>2021-03-18T18:45:45Z</dc:date>
    </item>
    <item>
      <title>Re: "Checkpoint device returned error 404 with message" when installing policy through Ans</title>
      <link>https://community.checkpoint.com/t5/Ansible/quot-Checkpoint-device-returned-error-404-with-message-quot-when/m-p/114039#M485</link>
      <description>&lt;P&gt;Yeah, that's how we are doing it. Installing manually with SmartConsole. And I just tried doing:&lt;/P&gt;&lt;P&gt;install-policy policy-package "Reptiles" access true threat-prevention true targets.1 "clustername"&lt;BR /&gt;and it installed with no problem.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But with&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;tasks:
    - name: Install Reptiles
      check_point.mgmt.cp_mgmt_install_policy:
        access: true
        policy_package: Reptiles
        threat_prevention: true
        targets:
        - clustername
      ignore_errors: True
      register: result&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I get that same &amp;amp;*^*(#$#!$@#&amp;nbsp; bda64744-c5bf-42f7-b052-36d1aa5757db "not found".&lt;BR /&gt;&lt;BR /&gt;I will continue the scripts tomorrow to try to find this bda guy.&lt;/P&gt;</description>
      <pubDate>Thu, 18 Mar 2021 23:28:38 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Ansible/quot-Checkpoint-device-returned-error-404-with-message-quot-when/m-p/114039#M485</guid>
      <dc:creator>Hash1</dc:creator>
      <dc:date>2021-03-18T23:28:38Z</dc:date>
    </item>
    <item>
      <title>Re: "Checkpoint device returned error 404 with message" when installing policy through Ans</title>
      <link>https://community.checkpoint.com/t5/Ansible/quot-Checkpoint-device-returned-error-404-with-message-quot-when/m-p/114458#M486</link>
      <description>&lt;P&gt;Sorry for the late response but I'm busy this week. I'm still having trouble with all these quotes. Suggested fix didn't work. I keep getting with all tries to escape it:&lt;/P&gt;&lt;P&gt;Error: The parameters of show-access-rulebase command should be provided in pairs (key and value). You have provided an odd number of parameters which suggests that you are probably missing a parameter.&lt;BR /&gt;objects to export.&lt;BR /&gt;script5: line 8: [: 500: unary operator expected&lt;/P&gt;</description>
      <pubDate>Wed, 24 Mar 2021 12:52:41 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Ansible/quot-Checkpoint-device-returned-error-404-with-message-quot-when/m-p/114458#M486</guid>
      <dc:creator>Hash1</dc:creator>
      <dc:date>2021-03-24T12:52:41Z</dc:date>
    </item>
    <item>
      <title>Re: "Checkpoint device returned error 404 with message" when installing policy through Ans</title>
      <link>https://community.checkpoint.com/t5/Ansible/quot-Checkpoint-device-returned-error-404-with-message-quot-when/m-p/114464#M487</link>
      <description>&lt;P&gt;Clearly I don't remember how to keep quotes in strings in BASH. Oh well. Try this instead:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;( mgmt_cli login read-only true -r true &amp;gt; sessionFile.txt
numberOfObjects=1
offset=0
while [ $offset -lt $numberOfObjects ]; do
echo "Exporting up to $(($offset+500))" &amp;gt;&amp;amp;2
jsonOutput=$(mgmt_cli -s sessionFile.txt --format json show access-rulebase name "Policy_the_Second Network" details-level full limit 500 offset ${offset})
echo "${jsonOutput}" | jq -c '.rulebase[]|.'
numberOfObjects=$(echo "${jsonOutput}" | jq ".total")
offset=$(($offset+500))
done
mgmt_cli -s sessionFile.txt logout&amp;gt;/dev/null
/bin/rm sessionFile.txt ) &amp;gt; output.json&lt;/LI-CODE&gt;
&lt;P&gt;Replace `Policy_the_Second Network` with the name of the access layer you are trying to dump. This version worked on my development SmartCenter.&lt;/P&gt;</description>
      <pubDate>Wed, 24 Mar 2021 13:36:18 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Ansible/quot-Checkpoint-device-returned-error-404-with-message-quot-when/m-p/114464#M487</guid>
      <dc:creator>Bob_Zimmerman</dc:creator>
      <dc:date>2021-03-24T13:36:18Z</dc:date>
    </item>
  </channel>
</rss>

