<?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 Where used query by IP address in API / CLI Discussion</title>
    <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Where-used-query-by-IP-address/m-p/51056#M3323</link>
    <description>&lt;P&gt;Is there a way in R80 to query where an object is used by IP ADDRESS rather than by name?&lt;/P&gt;&lt;P&gt;Additionally, I'd like to be able to script it so that you are promoted for the IP and then the query runs and returns the results.&lt;/P&gt;</description>
    <pubDate>Tue, 16 Apr 2019 12:15:40 GMT</pubDate>
    <dc:creator>J_Saun</dc:creator>
    <dc:date>2019-04-16T12:15:40Z</dc:date>
    <item>
      <title>Where used query by IP address</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Where-used-query-by-IP-address/m-p/51056#M3323</link>
      <description>&lt;P&gt;Is there a way in R80 to query where an object is used by IP ADDRESS rather than by name?&lt;/P&gt;&lt;P&gt;Additionally, I'd like to be able to script it so that you are promoted for the IP and then the query runs and returns the results.&lt;/P&gt;</description>
      <pubDate>Tue, 16 Apr 2019 12:15:40 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Where-used-query-by-IP-address/m-p/51056#M3323</guid>
      <dc:creator>J_Saun</dc:creator>
      <dc:date>2019-04-16T12:15:40Z</dc:date>
    </item>
    <item>
      <title>Re: Where used query by IP address</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Where-used-query-by-IP-address/m-p/51060#M3324</link>
      <description>You can probably use show-objects first with ip-only and filter for the ip you want. Then send the returned objects to where-used.</description>
      <pubDate>Tue, 16 Apr 2019 12:43:50 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Where-used-query-by-IP-address/m-p/51060#M3324</guid>
      <dc:creator>Joshua_Hatter</dc:creator>
      <dc:date>2019-04-16T12:43:50Z</dc:date>
    </item>
    <item>
      <title>Re: Where used query by IP address</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Where-used-query-by-IP-address/m-p/51185#M3328</link>
      <description>&lt;P&gt;Thanks. I was able to get what I wanted using the command line (mgmt_cli) and using Postman but when I try to use it with ansible it errors out after login.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is my code:&lt;/P&gt;&lt;P&gt;- name: "show objects"&lt;BR /&gt;check_point_mgmt:&lt;BR /&gt;command: show-objects&lt;BR /&gt;parameters:&lt;BR /&gt;"limit" : 50&lt;BR /&gt;"offset" : 0&lt;BR /&gt;"type" : "object"&lt;BR /&gt;"filter" : "1.2.3.6"&lt;BR /&gt;"ip-only" : true&lt;BR /&gt;session-data: "{{ login_response }}"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 17 Apr 2019 15:34:49 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Where-used-query-by-IP-address/m-p/51185#M3328</guid>
      <dc:creator>J_Saun</dc:creator>
      <dc:date>2019-04-17T15:34:49Z</dc:date>
    </item>
    <item>
      <title>Re: Where used query by IP address</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Where-used-query-by-IP-address/m-p/51759#M3354</link>
      <description>&lt;P&gt;I was able to get the script to work. I was missing quotes around the word TRUE:&lt;/P&gt;&lt;P&gt;- name: "show objects"&lt;BR /&gt;check_point_mgmt:&lt;BR /&gt;command: show-objects&lt;BR /&gt;parameters:&lt;BR /&gt;"limit" : 50&lt;BR /&gt;"offset" : 0&lt;BR /&gt;"type" : "object"&lt;BR /&gt;"filter" : "1.2.3.6"&lt;BR /&gt;"ip-only" : "true"&lt;BR /&gt;session-data: "{{ login_response }}"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My next challenge is to have the output from the above command displayed without using -vvv. I tried using REGISTER but it errors out:&lt;/P&gt;&lt;P&gt;- name: "show objects"&lt;BR /&gt;check_point_mgmt:&lt;BR /&gt;command: show-objects&lt;BR /&gt;parameters:&lt;BR /&gt;"limit" : 50&lt;BR /&gt;"offset" : 0&lt;BR /&gt;"type" : "object"&lt;BR /&gt;"filter" : "1.2.3.6"&lt;BR /&gt;"ip-only" : "true"&lt;BR /&gt;session-data: "{{ login_response }}"&lt;/P&gt;&lt;P&gt;register: shell_result&lt;/P&gt;&lt;P&gt;- debug: var=shell_result.stdout_lines&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;ERROR&lt;/P&gt;&lt;P&gt;TASK [show objects] *************************************************************************************************************************************************************************************************************************&lt;BR /&gt;fatal: [127.0.0.1]: FAILED! =&amp;gt; {"changed": false, "msg": "Unsupported parameters for (check_point_mgmt) module: register Supported parameters include: command,fingerprint,parameters,session-data"}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any help would be appreciated.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 24 Apr 2019 18:03:36 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Where-used-query-by-IP-address/m-p/51759#M3354</guid>
      <dc:creator>J_Saun</dc:creator>
      <dc:date>2019-04-24T18:03:36Z</dc:date>
    </item>
    <item>
      <title>Re: Where used query by IP address</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Where-used-query-by-IP-address/m-p/51775#M3355</link>
      <description>&lt;P&gt;Figured it out. Had to remove .stdout_lines form debug:&lt;BR /&gt;&lt;BR /&gt;(login commands removed)&lt;BR /&gt;&lt;BR /&gt;- name: "show objects"&lt;BR /&gt;check_point_mgmt:&lt;BR /&gt;command: show-objects&lt;BR /&gt;parameters:&lt;BR /&gt;filter : "1.2.3.6"&lt;BR /&gt;ip-only : "true"&lt;BR /&gt;session-data: "{{ login_response }}"&lt;BR /&gt;register: shell_result&lt;BR /&gt;&lt;BR /&gt;- debug: var=shell_result&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Note that Ansible is picky about columns. The above script needs to be formatted correctly (proper alignment and indentations).&lt;/P&gt;</description>
      <pubDate>Wed, 24 Apr 2019 20:02:25 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Where-used-query-by-IP-address/m-p/51775#M3355</guid>
      <dc:creator>J_Saun</dc:creator>
      <dc:date>2019-04-24T20:02:25Z</dc:date>
    </item>
    <item>
      <title>Re: Where used query by IP address</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Where-used-query-by-IP-address/m-p/127815#M6168</link>
      <description>&lt;P&gt;I am new with checkpoint ansible.&lt;BR /&gt;I was wondering if it is possible to search object by ip with the new collection?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://galaxy.ansible.com/check_point/mgmt" target="_blank"&gt;https://galaxy.ansible.com/check_point/mgmt&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 24 Aug 2021 10:54:10 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Where-used-query-by-IP-address/m-p/127815#M6168</guid>
      <dc:creator>Luis_Miguel_Mig</dc:creator>
      <dc:date>2021-08-24T10:54:10Z</dc:date>
    </item>
    <item>
      <title>Re: Where used query by IP address</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Where-used-query-by-IP-address/m-p/127819#M6169</link>
      <description>&lt;P&gt;oh I see&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;- name: Get object facts&lt;BR /&gt;checkpoint_object_facts:&lt;BR /&gt;object_filter: 192.168.30.30&lt;BR /&gt;ip_only: yes&lt;/P&gt;</description>
      <pubDate>Tue, 24 Aug 2021 11:18:51 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Where-used-query-by-IP-address/m-p/127819#M6169</guid>
      <dc:creator>Luis_Miguel_Mig</dc:creator>
      <dc:date>2021-08-24T11:18:51Z</dc:date>
    </item>
  </channel>
</rss>

