<?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 show-objects with filter in API / CLI Discussion</title>
    <link>https://community.checkpoint.com/t5/API-CLI-Discussion/show-objects-with-filter/m-p/101579#M5294</link>
    <description>&lt;P&gt;The following command doesn't show the expected result.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;As wrote in the API Guide, this show filter only in the ipv4 adress field. It doe's, but if the object is not in the database, it prints all existing ip addresses.&lt;/P&gt;&lt;P&gt;In my example the IP 11.1.1.3 is not existing&lt;/P&gt;&lt;P&gt;Command:&lt;/P&gt;&lt;P&gt;show-objects -d '{"type":"host","filter":"11.1.1.3","ip-only":"true"}'&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Result is soething like this:&lt;/P&gt;&lt;P&gt;}, {&lt;BR /&gt;"uid" : "da7514ee-2f17-437a-af4a-dfd504ee676a",&lt;BR /&gt;"name" : "gh_Test_Host3",&lt;BR /&gt;"type" : "host",&lt;BR /&gt;"domain" : {&lt;BR /&gt;"uid" : "1e294ce0-367a-11e3-aa6e-0800200c9a66",&lt;BR /&gt;"name" : "Global",&lt;BR /&gt;"domain-type" : "global domain"&lt;BR /&gt;},&lt;BR /&gt;"ipv4-address" : "10.1.1.3"&lt;BR /&gt;}, {&lt;BR /&gt;"uid" : "793b8725-52e8-43b0-8a73-a45ab5b2e68e",&lt;BR /&gt;"name" : "gh_Test_Host3_Clone",&lt;BR /&gt;"type" : "host",&lt;BR /&gt;"domain" : {&lt;BR /&gt;"uid" : "1e294ce0-367a-11e3-aa6e-0800200c9a66",&lt;BR /&gt;"name" : "Global",&lt;BR /&gt;"domain-type" : "global domain"&lt;BR /&gt;},&lt;BR /&gt;"ipv4-address" : "10.1.1.3"&lt;BR /&gt;}, {&lt;BR /&gt;"uid" : "73be94b0-3834-4547-9ea4-356b4d49a7ab",&lt;BR /&gt;"name" : "gh_Test_Host_11.1.1.1",&lt;BR /&gt;"type" : "host",&lt;BR /&gt;"domain" : {&lt;BR /&gt;"uid" : "1e294ce0-367a-11e3-aa6e-0800200c9a66",&lt;BR /&gt;"name" : "Global",&lt;BR /&gt;"domain-type" : "global domain"&lt;BR /&gt;},&lt;BR /&gt;"ipv4-address" : "11.1.1.2"&lt;BR /&gt;}, {&lt;BR /&gt;"uid" : "ece090d0-8a3b-45e6-9273-59f3bb95d5ee",&lt;BR /&gt;"name" : "gh_Test_Host_11.1.1.2",&lt;BR /&gt;"type" : "host",&lt;BR /&gt;"domain" : {&lt;BR /&gt;"uid" : "1e294ce0-367a-11e3-aa6e-0800200c9a66",&lt;BR /&gt;"name" : "Global",&lt;BR /&gt;"domain-type" : "global domain"&lt;BR /&gt;},&lt;BR /&gt;"ipv4-address" : "11.1.1.1"&lt;BR /&gt;} ]&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there a bug?&lt;/P&gt;&lt;P&gt;Regards Peter&lt;/P&gt;</description>
    <pubDate>Tue, 10 Nov 2020 07:17:53 GMT</pubDate>
    <dc:creator>PeterH</dc:creator>
    <dc:date>2020-11-10T07:17:53Z</dc:date>
    <item>
      <title>show-objects with filter</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/show-objects-with-filter/m-p/101579#M5294</link>
      <description>&lt;P&gt;The following command doesn't show the expected result.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;As wrote in the API Guide, this show filter only in the ipv4 adress field. It doe's, but if the object is not in the database, it prints all existing ip addresses.&lt;/P&gt;&lt;P&gt;In my example the IP 11.1.1.3 is not existing&lt;/P&gt;&lt;P&gt;Command:&lt;/P&gt;&lt;P&gt;show-objects -d '{"type":"host","filter":"11.1.1.3","ip-only":"true"}'&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Result is soething like this:&lt;/P&gt;&lt;P&gt;}, {&lt;BR /&gt;"uid" : "da7514ee-2f17-437a-af4a-dfd504ee676a",&lt;BR /&gt;"name" : "gh_Test_Host3",&lt;BR /&gt;"type" : "host",&lt;BR /&gt;"domain" : {&lt;BR /&gt;"uid" : "1e294ce0-367a-11e3-aa6e-0800200c9a66",&lt;BR /&gt;"name" : "Global",&lt;BR /&gt;"domain-type" : "global domain"&lt;BR /&gt;},&lt;BR /&gt;"ipv4-address" : "10.1.1.3"&lt;BR /&gt;}, {&lt;BR /&gt;"uid" : "793b8725-52e8-43b0-8a73-a45ab5b2e68e",&lt;BR /&gt;"name" : "gh_Test_Host3_Clone",&lt;BR /&gt;"type" : "host",&lt;BR /&gt;"domain" : {&lt;BR /&gt;"uid" : "1e294ce0-367a-11e3-aa6e-0800200c9a66",&lt;BR /&gt;"name" : "Global",&lt;BR /&gt;"domain-type" : "global domain"&lt;BR /&gt;},&lt;BR /&gt;"ipv4-address" : "10.1.1.3"&lt;BR /&gt;}, {&lt;BR /&gt;"uid" : "73be94b0-3834-4547-9ea4-356b4d49a7ab",&lt;BR /&gt;"name" : "gh_Test_Host_11.1.1.1",&lt;BR /&gt;"type" : "host",&lt;BR /&gt;"domain" : {&lt;BR /&gt;"uid" : "1e294ce0-367a-11e3-aa6e-0800200c9a66",&lt;BR /&gt;"name" : "Global",&lt;BR /&gt;"domain-type" : "global domain"&lt;BR /&gt;},&lt;BR /&gt;"ipv4-address" : "11.1.1.2"&lt;BR /&gt;}, {&lt;BR /&gt;"uid" : "ece090d0-8a3b-45e6-9273-59f3bb95d5ee",&lt;BR /&gt;"name" : "gh_Test_Host_11.1.1.2",&lt;BR /&gt;"type" : "host",&lt;BR /&gt;"domain" : {&lt;BR /&gt;"uid" : "1e294ce0-367a-11e3-aa6e-0800200c9a66",&lt;BR /&gt;"name" : "Global",&lt;BR /&gt;"domain-type" : "global domain"&lt;BR /&gt;},&lt;BR /&gt;"ipv4-address" : "11.1.1.1"&lt;BR /&gt;} ]&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there a bug?&lt;/P&gt;&lt;P&gt;Regards Peter&lt;/P&gt;</description>
      <pubDate>Tue, 10 Nov 2020 07:17:53 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/show-objects-with-filter/m-p/101579#M5294</guid>
      <dc:creator>PeterH</dc:creator>
      <dc:date>2020-11-10T07:17:53Z</dc:date>
    </item>
    <item>
      <title>Re: show-objects with filter</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/show-objects-with-filter/m-p/101582#M5295</link>
      <description>&lt;P&gt;&amp;nbsp;Find out that this is not working in global domain only. In the CMA itself is the result as expected.&lt;/P&gt;&lt;P&gt;Peter&lt;/P&gt;</description>
      <pubDate>Tue, 10 Nov 2020 07:45:22 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/show-objects-with-filter/m-p/101582#M5295</guid>
      <dc:creator>PeterH</dc:creator>
      <dc:date>2020-11-10T07:45:22Z</dc:date>
    </item>
    <item>
      <title>Re: show-objects with filter</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/show-objects-with-filter/m-p/151108#M6881</link>
      <description>&lt;P&gt;&lt;a href="https://community.checkpoint.com/t5/user/viewprofilepage/user-id/19287"&gt;@PeterH&lt;/a&gt;&amp;nbsp;can you share your playbook? I have a multidomain environment and I am having difficulty doing searches within the domains.&lt;/P&gt;</description>
      <pubDate>Thu, 16 Jun 2022 23:35:44 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/show-objects-with-filter/m-p/151108#M6881</guid>
      <dc:creator>paredesh</dc:creator>
      <dc:date>2022-06-16T23:35:44Z</dc:date>
    </item>
  </channel>
</rss>

