<?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: API search in API / CLI Discussion</title>
    <link>https://community.checkpoint.com/t5/API-CLI-Discussion/API-search/m-p/130605#M6285</link>
    <description>&lt;P&gt;Is there a way I can contact you directly?&lt;/P&gt;</description>
    <pubDate>Wed, 29 Sep 2021 20:41:39 GMT</pubDate>
    <dc:creator>hugoparedes</dc:creator>
    <dc:date>2021-09-29T20:41:39Z</dc:date>
    <item>
      <title>API search</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/API-search/m-p/130483#M6281</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;We are running 80.30. I am trying to use the API to search for example objects.&lt;/P&gt;&lt;P&gt;-- Is there a way I can search objects which contains ==? instead of exact which is the default?&lt;/P&gt;&lt;P&gt;-- Also in 80.30 can I search multiple cross domain?&lt;/P&gt;&lt;P&gt;=======================================&lt;/P&gt;&lt;P&gt;#!/usr/bin/env python3&lt;BR /&gt;#This script was created by&lt;/P&gt;&lt;P&gt;import http.client&lt;BR /&gt;import requests&lt;BR /&gt;import json&lt;BR /&gt;import ssl&lt;/P&gt;&lt;P&gt;ssl._create_default_https_context = ssl._create_unverified_context&lt;/P&gt;&lt;P&gt;conn = http.client.HTTPSConnection("x.x.x.x", 443)&lt;BR /&gt;payload = json.dumps({&lt;BR /&gt;"name": "ENTER THE NAME HERE",&amp;nbsp; &amp;nbsp;&amp;lt;&amp;lt;&amp;lt;--- SEARCH CONTAINS INSTEAD OF EXACT&lt;BR /&gt;# "domain": "DMZ-Americas"&lt;BR /&gt;})&lt;BR /&gt;headers = {&lt;BR /&gt;'Content-Type': 'application/json',&lt;BR /&gt;'X-chkp-sid': 'SID_HERE'&lt;BR /&gt;}&lt;BR /&gt;conn.request("POST", "/web_api/where-used", payload, headers)&lt;BR /&gt;res = conn.getresponse()&lt;BR /&gt;data = res.read()&lt;BR /&gt;print(data.decode("utf-8"))&lt;/P&gt;</description>
      <pubDate>Tue, 28 Sep 2021 16:34:02 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/API-search/m-p/130483#M6281</guid>
      <dc:creator>hugoparedes</dc:creator>
      <dc:date>2021-09-28T16:34:02Z</dc:date>
    </item>
    <item>
      <title>Re: API search</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/API-search/m-p/130497#M6282</link>
      <description>&lt;P&gt;where-used is searching for usage of a precise object.&lt;BR /&gt;It is not used to find objects that contain a specific name.&lt;BR /&gt;You should use show objects with the filter parameter to achieve that.&lt;/P&gt;
&lt;P&gt;To do a cross-domain search in R80.30, you need to use a script like:&amp;nbsp;&lt;A href="https://community.checkpoint.com/t5/API-CLI-Discussion/MDS-Global-search-across-CMAs-by-IP/m-p/75906" target="_blank"&gt;https://community.checkpoint.com/t5/API-CLI-Discussion/MDS-Global-search-across-CMAs-by-IP/m-p/75906&lt;/A&gt;&lt;BR /&gt;Otherwise, upgrade to R81, which has this functionality built into the API.&lt;/P&gt;</description>
      <pubDate>Tue, 28 Sep 2021 21:26:37 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/API-search/m-p/130497#M6282</guid>
      <dc:creator>PhoneBoy</dc:creator>
      <dc:date>2021-09-28T21:26:37Z</dc:date>
    </item>
    <item>
      <title>Re: API search</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/API-search/m-p/130605#M6285</link>
      <description>&lt;P&gt;Is there a way I can contact you directly?&lt;/P&gt;</description>
      <pubDate>Wed, 29 Sep 2021 20:41:39 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/API-search/m-p/130605#M6285</guid>
      <dc:creator>hugoparedes</dc:creator>
      <dc:date>2021-09-29T20:41:39Z</dc:date>
    </item>
    <item>
      <title>Re: API search</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/API-search/m-p/130607#M6286</link>
      <description>&lt;P&gt;You can send me a PM, but it would definitely be best to reach out to your Check Point SE.&lt;BR /&gt;If you need help figuring out who that is, let me know.&lt;/P&gt;</description>
      <pubDate>Wed, 29 Sep 2021 20:52:03 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/API-search/m-p/130607#M6286</guid>
      <dc:creator>PhoneBoy</dc:creator>
      <dc:date>2021-09-29T20:52:03Z</dc:date>
    </item>
  </channel>
</rss>

