<?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: Tags on Rules and Sections? in API / CLI Discussion</title>
    <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Tags-on-Rules-and-Sections/m-p/169047#M7455</link>
    <description>&lt;P&gt;I would also recommend looking at the 3 Custom fields:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://sc1.checkpoint.com/documents/latest/APIs/#cli/set-access-rule~v1.9%20" target="_blank"&gt;https://sc1.checkpoint.com/documents/latest/APIs/#cli/set-access-rule~v1.9%20&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="2023-01-25 09_36_05-Check Point - Management API reference.png" style="width: 999px;"&gt;&lt;img src="https://community.checkpoint.com/t5/image/serverpage/image-id/19289i8908C1CCD263DC8E/image-size/large?v=v2&amp;amp;px=999" role="button" title="2023-01-25 09_36_05-Check Point - Management API reference.png" alt="2023-01-25 09_36_05-Check Point - Management API reference.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="2023-01-25 09_38_53-Cloud Demo Server [ID_880152402] - SmartConsole.png" style="width: 999px;"&gt;&lt;img src="https://community.checkpoint.com/t5/image/serverpage/image-id/19290i954FA5B3964639FF/image-size/large?v=v2&amp;amp;px=999" role="button" title="2023-01-25 09_38_53-Cloud Demo Server [ID_880152402] - SmartConsole.png" alt="2023-01-25 09_38_53-Cloud Demo Server [ID_880152402] - SmartConsole.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 25 Jan 2023 07:39:46 GMT</pubDate>
    <dc:creator>Tal_Paz-Fridman</dc:creator>
    <dc:date>2023-01-25T07:39:46Z</dc:date>
    <item>
      <title>Tags on Rules and Sections?</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Tags-on-Rules-and-Sections/m-p/169017#M7453</link>
      <description>&lt;P&gt;Looking at the documentation for management API v1.9, I see tags can be set on access layers, HTTPS layers, policy packages, and NAT sections. Meanwhile, access sections, access rules, HTTPS sections, HTTPS rules, and NAT rules make no mention of them. They all seem to have a tags field internally, but the API documentation only references the field on some of them.&lt;/P&gt;
&lt;P&gt;Can tags be set on these objects? If nobody knows, I should be able to try it out tomorrow.&lt;/P&gt;</description>
      <pubDate>Wed, 25 Jan 2023 04:01:58 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Tags-on-Rules-and-Sections/m-p/169017#M7453</guid>
      <dc:creator>Bob_Zimmerman</dc:creator>
      <dc:date>2023-01-25T04:01:58Z</dc:date>
    </item>
    <item>
      <title>Re: Tags on Rules and Sections?</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Tags-on-Rules-and-Sections/m-p/169032#M7454</link>
      <description>&lt;P&gt;&lt;a href="https://community.checkpoint.com/t5/user/viewprofilepage/user-id/37502"&gt;@Omer_Kleinstern&lt;/a&gt;&amp;nbsp;should be able to tell you for sure.&lt;/P&gt;</description>
      <pubDate>Wed, 25 Jan 2023 05:43:46 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Tags-on-Rules-and-Sections/m-p/169032#M7454</guid>
      <dc:creator>PhoneBoy</dc:creator>
      <dc:date>2023-01-25T05:43:46Z</dc:date>
    </item>
    <item>
      <title>Re: Tags on Rules and Sections?</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Tags-on-Rules-and-Sections/m-p/169047#M7455</link>
      <description>&lt;P&gt;I would also recommend looking at the 3 Custom fields:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://sc1.checkpoint.com/documents/latest/APIs/#cli/set-access-rule~v1.9%20" target="_blank"&gt;https://sc1.checkpoint.com/documents/latest/APIs/#cli/set-access-rule~v1.9%20&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="2023-01-25 09_36_05-Check Point - Management API reference.png" style="width: 999px;"&gt;&lt;img src="https://community.checkpoint.com/t5/image/serverpage/image-id/19289i8908C1CCD263DC8E/image-size/large?v=v2&amp;amp;px=999" role="button" title="2023-01-25 09_36_05-Check Point - Management API reference.png" alt="2023-01-25 09_36_05-Check Point - Management API reference.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="2023-01-25 09_38_53-Cloud Demo Server [ID_880152402] - SmartConsole.png" style="width: 999px;"&gt;&lt;img src="https://community.checkpoint.com/t5/image/serverpage/image-id/19290i954FA5B3964639FF/image-size/large?v=v2&amp;amp;px=999" role="button" title="2023-01-25 09_38_53-Cloud Demo Server [ID_880152402] - SmartConsole.png" alt="2023-01-25 09_38_53-Cloud Demo Server [ID_880152402] - SmartConsole.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 25 Jan 2023 07:39:46 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Tags-on-Rules-and-Sections/m-p/169047#M7455</guid>
      <dc:creator>Tal_Paz-Fridman</dc:creator>
      <dc:date>2023-01-25T07:39:46Z</dc:date>
    </item>
    <item>
      <title>Re: Tags on Rules and Sections?</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Tags-on-Rules-and-Sections/m-p/169050#M7456</link>
      <description>&lt;P&gt;We don't currently support tags on Access rules, but we are looking at it for upcoming versions.&lt;/P&gt;</description>
      <pubDate>Wed, 25 Jan 2023 07:57:43 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Tags-on-Rules-and-Sections/m-p/169050#M7456</guid>
      <dc:creator>Tomer_Noy</dc:creator>
      <dc:date>2023-01-25T07:57:43Z</dc:date>
    </item>
    <item>
      <title>Re: Tags on Rules and Sections?</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Tags-on-Rules-and-Sections/m-p/169115#M7457</link>
      <description>&lt;P&gt;Sure. I'm not trying to solve any particular problem, I'm just trying to learn what is possible and what isn't. I'm building something to interact with the API, and I'm trying to include local checks so the user can't even try to do things which the API simply doesn't allow. If tags on rules aren't a thing, then I simply won't let the user specify tags to set.&lt;/P&gt;
&lt;P&gt;Also I was apparently reading some of the return values on NAT sections. They return a list of tags, but the documentation doesn't have a way to set the tags. Access sections and HTTPS sections also return a list of tags, but don't appear to have a way to set them (outside of 'set generic-object', anyway). The various rule types don't return a list of tags at all.&lt;/P&gt;
&lt;P&gt;These little inconsistencies are driving me nuts.&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":winking_face_with_tongue:"&gt;😜&lt;/span&gt; Most things have a comments field and a name field. Rule sections of any kind don't accept comments, but they have names. NAT rules don't have a name, but they have comments. This has led me to try to find all of the inconsistencies I can so I can handle them properly.&lt;/P&gt;</description>
      <pubDate>Wed, 25 Jan 2023 13:49:15 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Tags-on-Rules-and-Sections/m-p/169115#M7457</guid>
      <dc:creator>Bob_Zimmerman</dc:creator>
      <dc:date>2023-01-25T13:49:15Z</dc:date>
    </item>
    <item>
      <title>Re: Tags on Rules and Sections?</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Tags-on-Rules-and-Sections/m-p/169163#M7458</link>
      <description>&lt;P&gt;Thanks for the confirmation! That's what I was expecting. I assume it's the case for other rule types, too.&lt;/P&gt;</description>
      <pubDate>Wed, 25 Jan 2023 17:10:21 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Tags-on-Rules-and-Sections/m-p/169163#M7458</guid>
      <dc:creator>Bob_Zimmerman</dc:creator>
      <dc:date>2023-01-25T17:10:21Z</dc:date>
    </item>
    <item>
      <title>Re: Tags on Rules and Sections?</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Tags-on-Rules-and-Sections/m-p/169500#M7466</link>
      <description>&lt;P&gt;We will support tags on all rule types in the next version and in future HFA of&amp;nbsp;previous versions.&lt;/P&gt;</description>
      <pubDate>Sun, 29 Jan 2023 07:31:58 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Tags-on-Rules-and-Sections/m-p/169500#M7466</guid>
      <dc:creator>Omer_Kleinstern</dc:creator>
      <dc:date>2023-01-29T07:31:58Z</dc:date>
    </item>
    <item>
      <title>Re: Tags on Rules and Sections?</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Tags-on-Rules-and-Sections/m-p/243051#M8955</link>
      <description>&lt;P&gt;Hi Omer,&lt;/P&gt;
&lt;P&gt;it seems we do not support it yet , right ?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Farid&lt;/P&gt;</description>
      <pubDate>Wed, 05 Mar 2025 10:31:38 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Tags-on-Rules-and-Sections/m-p/243051#M8955</guid>
      <dc:creator>faridb</dc:creator>
      <dc:date>2025-03-05T10:31:38Z</dc:date>
    </item>
    <item>
      <title>Re: Tags on Rules and Sections?</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Tags-on-Rules-and-Sections/m-p/243052#M8956</link>
      <description>&lt;P&gt;Supported in Management API since R81.20 HFA take 26 (&lt;SPAN&gt;PMTR-89420&lt;/SPAN&gt;)&lt;/P&gt;</description>
      <pubDate>Wed, 05 Mar 2025 11:16:46 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Tags-on-Rules-and-Sections/m-p/243052#M8956</guid>
      <dc:creator>Omer_Kleinstern</dc:creator>
      <dc:date>2025-03-05T11:16:46Z</dc:date>
    </item>
    <item>
      <title>Re: Tags on Rules and Sections?</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Tags-on-Rules-and-Sections/m-p/243058#M8957</link>
      <description>&lt;P&gt;thx for confirming !&lt;/P&gt;
&lt;P&gt;so it's not possible to leverage these tags on smartconsole for simple actions like search all rules matching a specific tag ?&lt;/P&gt;</description>
      <pubDate>Wed, 05 Mar 2025 11:55:56 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Tags-on-Rules-and-Sections/m-p/243058#M8957</guid>
      <dc:creator>faridb</dc:creator>
      <dc:date>2025-03-05T11:55:56Z</dc:date>
    </item>
    <item>
      <title>Re: Tags on Rules and Sections?</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Tags-on-Rules-and-Sections/m-p/243088#M8959</link>
      <description>&lt;P&gt;You can search for objects&amp;nbsp;tagged with a specific tag in SmartConsole.&lt;BR /&gt;However, this search does not currently look at the rules themselves for tags.&amp;nbsp;&lt;BR /&gt;As SmartConsole (at least in R81.20), doesn't support tagging a rule, I used&amp;nbsp;SmartConsole CLI to tag the Stealth rule with the tag "Foobar"&lt;BR /&gt;You can see that I successfully did it by reviewing the API output:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="image.png" style="width: 999px;"&gt;&lt;img src="https://community.checkpoint.com/t5/image/serverpage/image-id/29814iDBA9670CC56F6211/image-size/large?v=v2&amp;amp;px=999" role="button" title="image.png" alt="image.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="image.png" style="width: 999px;"&gt;&lt;img src="https://community.checkpoint.com/t5/image/serverpage/image-id/29815i7639AFB10CFDBB43/image-size/large?v=v2&amp;amp;px=999" role="button" title="image.png" alt="image.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;I also tagged HR LAN with Foobar and did a search in SmartConsole:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="image.png" style="width: 999px;"&gt;&lt;img src="https://community.checkpoint.com/t5/image/serverpage/image-id/29813i0AC4943CA92B8290/image-size/large?v=v2&amp;amp;px=999" role="button" title="image.png" alt="image.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;As you can see, rules 3 and 8 (which include an object tagged with Foobar) show.&lt;BR /&gt;Rule 2 (where I applied the Foobar tag on the rule itself) does not show in the search.&lt;/P&gt;
&lt;P&gt;Not sure if this is a bug or an RFE.&lt;/P&gt;</description>
      <pubDate>Wed, 05 Mar 2025 15:24:22 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Tags-on-Rules-and-Sections/m-p/243088#M8959</guid>
      <dc:creator>PhoneBoy</dc:creator>
      <dc:date>2025-03-05T15:24:22Z</dc:date>
    </item>
  </channel>
</rss>

