<?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: Show hosts filtered on ipv4-address in API / CLI Discussion</title>
    <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Show-hosts-filtered-on-ipv4-address/m-p/275609#M9419</link>
    <description>&lt;P&gt;P.S.: I would use filter in the search to reduce the results and then do the jq and select stuff&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;mgmt_cli -r true show hosts filter "10.0.1.5" details-level full -f json | \
  jq -r '.objects[] | select(."ipv4-address" == "10.0.1.5") | [.name, .uid, ."ipv4-address"] | @csv'&lt;/LI-CODE&gt;</description>
    <pubDate>Thu, 16 Apr 2026 12:40:19 GMT</pubDate>
    <dc:creator>Vincent_Bacher</dc:creator>
    <dc:date>2026-04-16T12:40:19Z</dc:date>
    <item>
      <title>Show hosts filtered on ipv4-address</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Show-hosts-filtered-on-ipv4-address/m-p/275604#M9416</link>
      <description>&lt;P&gt;I want to use the API to query if there are network objects having a specific ipv4-address. Is there really no way except using a filter which would also return objects if the ipv4-address is in other fields like comment, name etc.?&lt;/P&gt;&lt;P&gt;R82 Smart Management&lt;/P&gt;</description>
      <pubDate>Thu, 16 Apr 2026 12:15:42 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Show-hosts-filtered-on-ipv4-address/m-p/275604#M9416</guid>
      <dc:creator>Bärbel</dc:creator>
      <dc:date>2026-04-16T12:15:42Z</dc:date>
    </item>
    <item>
      <title>Re: Show hosts filtered on ipv4-address</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Show-hosts-filtered-on-ipv4-address/m-p/275606#M9417</link>
      <description>&lt;P&gt;There's an example in the API documentation:&amp;nbsp;&lt;A href="https://sc1.checkpoint.com/documents/latest/APIs/#tips_best_practices~v2.1%20" target="_blank"&gt;https://sc1.checkpoint.com/documents/latest/APIs/#tips_best_practices~v2.1%20&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Quickly with mgmt_cli:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;mgmt_cli -r true show hosts details-level full -f json | jq -r '.objects[] | select(."ipv4-address" == "224.0.0.2")| [.name, .uid , ."ipv4-address"] |@csv'
"routers_multicast","&amp;lt;removed&amp;gt;","224.0.0.2"&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;ipv4-address is an explicit field. Easily reproducible with other languages.&lt;/P&gt;</description>
      <pubDate>Thu, 16 Apr 2026 12:30:27 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Show-hosts-filtered-on-ipv4-address/m-p/275606#M9417</guid>
      <dc:creator>Alex-</dc:creator>
      <dc:date>2026-04-16T12:30:27Z</dc:date>
    </item>
    <item>
      <title>Re: Show hosts filtered on ipv4-address</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Show-hosts-filtered-on-ipv4-address/m-p/275608#M9418</link>
      <description>&lt;P&gt;In addition, example of an host&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;{
    "uid" : "94a3f624-48f2-4630-97cd-4468c7ca5af8",
    "name" : "host_2",
    "type" : "host",
    "domain" : {
      "uid" : "a59b701f-79dd-49dd-b054-f3c92af4b608",
      "name" : "dom82",
      "domain-type" : "domain"
    },
    "icon" : "Objects/host",
    "color" : "black",
    "ipv4-address" : "43.77.34.4"
  }&lt;/LI-CODE&gt;
&lt;P&gt;Unfortunately searching for a field like ipv4-address is not possible.&lt;/P&gt;</description>
      <pubDate>Thu, 16 Apr 2026 12:33:39 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Show-hosts-filtered-on-ipv4-address/m-p/275608#M9418</guid>
      <dc:creator>Vincent_Bacher</dc:creator>
      <dc:date>2026-04-16T12:33:39Z</dc:date>
    </item>
    <item>
      <title>Re: Show hosts filtered on ipv4-address</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Show-hosts-filtered-on-ipv4-address/m-p/275609#M9419</link>
      <description>&lt;P&gt;P.S.: I would use filter in the search to reduce the results and then do the jq and select stuff&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;mgmt_cli -r true show hosts filter "10.0.1.5" details-level full -f json | \
  jq -r '.objects[] | select(."ipv4-address" == "10.0.1.5") | [.name, .uid, ."ipv4-address"] | @csv'&lt;/LI-CODE&gt;</description>
      <pubDate>Thu, 16 Apr 2026 12:40:19 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Show-hosts-filtered-on-ipv4-address/m-p/275609#M9419</guid>
      <dc:creator>Vincent_Bacher</dc:creator>
      <dc:date>2026-04-16T12:40:19Z</dc:date>
    </item>
  </channel>
</rss>

