<?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 How to find all objets with a tag or many tag in API / CLI Discussion</title>
    <link>https://community.checkpoint.com/t5/API-CLI-Discussion/How-to-find-all-objets-with-a-tag-or-many-tag/m-p/2750#M184</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is it possible to search a object with a tag ?&lt;/P&gt;&lt;P&gt;If i use this JSON body, this don't work&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;&amp;nbsp; "limit" : 10,&lt;/P&gt;&lt;P&gt;&amp;nbsp; "offset" : 0,&lt;/P&gt;&lt;P&gt;&amp;nbsp; "order" : [ {&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "ASC" : "name"&lt;/P&gt;&lt;P&gt;&amp;nbsp; } ],&lt;/P&gt;&lt;P&gt;&amp;nbsp; "in" : [ "tags", "test" ],&lt;/P&gt;&lt;P&gt;&amp;nbsp; "type" : "object",&lt;/P&gt;&lt;P&gt;&amp;nbsp; "details-level" : "full"&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;I think the cause is tags not only a field but a array. Is it possible to search in a array ?&lt;/P&gt;&lt;P&gt;Or do you have some other idea to find all objects with a tag ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 04 Oct 2016 06:20:15 GMT</pubDate>
    <dc:creator>Marc_Guyard</dc:creator>
    <dc:date>2016-10-04T06:20:15Z</dc:date>
    <item>
      <title>How to find all objets with a tag or many tag</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/How-to-find-all-objets-with-a-tag-or-many-tag/m-p/2750#M184</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is it possible to search a object with a tag ?&lt;/P&gt;&lt;P&gt;If i use this JSON body, this don't work&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;&amp;nbsp; "limit" : 10,&lt;/P&gt;&lt;P&gt;&amp;nbsp; "offset" : 0,&lt;/P&gt;&lt;P&gt;&amp;nbsp; "order" : [ {&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "ASC" : "name"&lt;/P&gt;&lt;P&gt;&amp;nbsp; } ],&lt;/P&gt;&lt;P&gt;&amp;nbsp; "in" : [ "tags", "test" ],&lt;/P&gt;&lt;P&gt;&amp;nbsp; "type" : "object",&lt;/P&gt;&lt;P&gt;&amp;nbsp; "details-level" : "full"&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;I think the cause is tags not only a field but a array. Is it possible to search in a array ?&lt;/P&gt;&lt;P&gt;Or do you have some other idea to find all objects with a tag ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Oct 2016 06:20:15 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/How-to-find-all-objets-with-a-tag-or-many-tag/m-p/2750#M184</guid>
      <dc:creator>Marc_Guyard</dc:creator>
      <dc:date>2016-10-04T06:20:15Z</dc:date>
    </item>
    <item>
      <title>Re: How to find all objets with a tag or many tag</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/How-to-find-all-objets-with-a-tag-or-many-tag/m-p/2751#M185</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Maybe start by searching for objects that have a tag, so tag is not empty, then on those, do a search in the tags array for the tag you need.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Oct 2016 16:28:22 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/How-to-find-all-objets-with-a-tag-or-many-tag/m-p/2751#M185</guid>
      <dc:creator>Eric_Beasley</dc:creator>
      <dc:date>2016-10-04T16:28:22Z</dc:date>
    </item>
    <item>
      <title>Re: How to find all objets with a tag or many tag</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/How-to-find-all-objets-with-a-tag-or-many-tag/m-p/2752#M186</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Marc,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It's possible to search for an object with a tag, but you must use the tag identifier (not name).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-decoration: underline;"&gt;Search for objects with a tag identified as &lt;CODE&gt;"a80dda2f-e616-4e53-b2cb-43efdb1791e3"&lt;/CODE&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;CODE&gt;show-objects&lt;/CODE&gt;&lt;/P&gt;&lt;PRE&gt;{&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;BR /&gt;&amp;nbsp; "in": ["tags", "a80dda2f-e616-4e53-b2cb-43efdb1791e3"],&lt;BR /&gt;&amp;nbsp; "details-level": "full",&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;BR /&gt;&amp;nbsp; "type": "object" &lt;BR /&gt;}&lt;/PRE&gt;&lt;P&gt;&lt;SPAN style="text-decoration: underline;"&gt;Search for hosts with a tag identified as &lt;CODE&gt;"a80dda2f-e616-4e53-b2cb-43efdb1791e3"&lt;/CODE&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;CODE&gt;show-objects&lt;/CODE&gt;&lt;/P&gt;&lt;PRE&gt;{&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;BR /&gt;&amp;nbsp; "in": ["tags", "a80dda2f-e616-4e53-b2cb-43efdb1791e3"],&lt;BR /&gt;&amp;nbsp; "details-level": "full",&lt;BR /&gt;&amp;nbsp; "type": "host"&lt;BR /&gt;}&lt;/PRE&gt;&lt;P&gt;&lt;SPAN style="text-decoration: underline;"&gt;Search for networks with a tag identified as &lt;CODE&gt;"a80dda2f-e616-4e53-b2cb-43efdb1791e3"&lt;/CODE&gt; OR &lt;CODE&gt;"f671818b-7adc-4a41-a5d1-cec35e6f4a70"&lt;/CODE&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;CODE&gt;show-objects&lt;/CODE&gt;&lt;/P&gt;&lt;PRE&gt;{&amp;nbsp; &lt;BR /&gt;&amp;nbsp; "in" : ["tags", "a80dda2f-e616-4e53-b2cb-43efdb1791e3", "tags", "f671818b-7adc-4a41-a5d1-cec35e6f4a70"],&lt;BR /&gt;&amp;nbsp; "details-level" : "full",&lt;BR /&gt;&amp;nbsp; "type": "network"&lt;BR /&gt;}&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PS For now it is not possible to search for an object by "tag AND tag" but you can intersect results of a few calls yourself.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Oct 2016 08:48:09 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/How-to-find-all-objets-with-a-tag-or-many-tag/m-p/2752#M186</guid>
      <dc:creator>Eugene_Grybinny</dc:creator>
      <dc:date>2016-10-05T08:48:09Z</dc:date>
    </item>
  </channel>
</rss>

