<?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: Add Rule By Section Title in API / CLI Discussion</title>
    <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Add-Rule-By-Section-Title/m-p/2876#M225</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Eugene,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for clarifying. I looked at the doc and that format was not very clear to me. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Josh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 13 Dec 2016 14:50:27 GMT</pubDate>
    <dc:creator>Joshua_Boerum</dc:creator>
    <dc:date>2016-12-13T14:50:27Z</dc:date>
    <item>
      <title>Add Rule By Section Title</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Add-Rule-By-Section-Title/m-p/2874#M223</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Im looking at add-access-rule and am a little confused on some of the documentation around position. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For position it states I can do an integer, string, or Object. Integer and string make sense as it provides examples but what is the format for Object? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Am I able to specify a section title and a position within the section? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What i'm used to:&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;&amp;nbsp; "layer" : "Network",&lt;/P&gt;&lt;P&gt;&amp;nbsp; "position" : "1", &lt;/P&gt;&lt;P&gt;&amp;nbsp; "name" : "my rule",&lt;/P&gt;&lt;P&gt;&amp;nbsp; "action" : "Accept",&lt;/P&gt;&lt;P&gt;&amp;nbsp; "source" : "User_Networks",&lt;/P&gt;&lt;P&gt;&amp;nbsp; "destination" : "Vendor_Networks",&lt;/P&gt;&lt;P&gt;&amp;nbsp; "service" : "https"&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Dec 2016 20:40:07 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Add-Rule-By-Section-Title/m-p/2874#M223</guid>
      <dc:creator>Joshua_Boerum</dc:creator>
      <dc:date>2016-12-08T20:40:07Z</dc:date>
    </item>
    <item>
      <title>Re: Add Rule By Section Title</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Add-Rule-By-Section-Title/m-p/2875#M224</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Joshua,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yes, you can specify the name of the rule or the section you want to add your rule relatively to. Relative position options they are: top, above, below, bottom. &lt;/P&gt;&lt;P&gt;Example:&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;&amp;nbsp; "position": {&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "bottom": "My section title or uid"&lt;/P&gt;&lt;P&gt;&amp;nbsp; }&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Adding rule to a section specifying the number position withing the section is not supported for now.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PS Public documentation link &lt;A href="https://sc1.checkpoint.com/documents/R80/APIs/index.html#web/add-access-rule" title="https://sc1.checkpoint.com/documents/R80/APIs/index.html#web/add-access-rule"&gt;https://sc1.checkpoint.com/documents/R80/APIs/index.html#web/add-access-rule&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 11 Dec 2016 05:41:23 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Add-Rule-By-Section-Title/m-p/2875#M224</guid>
      <dc:creator>Eugene_Grybinny</dc:creator>
      <dc:date>2016-12-11T05:41:23Z</dc:date>
    </item>
    <item>
      <title>Re: Add Rule By Section Title</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Add-Rule-By-Section-Title/m-p/2876#M225</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Eugene,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for clarifying. I looked at the doc and that format was not very clear to me. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Josh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Dec 2016 14:50:27 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Add-Rule-By-Section-Title/m-p/2876#M225</guid>
      <dc:creator>Joshua_Boerum</dc:creator>
      <dc:date>2016-12-13T14:50:27Z</dc:date>
    </item>
    <item>
      <title>Re: Add Rule By Section Title</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Add-Rule-By-Section-Title/m-p/2877#M226</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;By trial and error I have also figured out what is the syntax for the CLI:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;mgmt add access-rule layer Network position.bottom "testsection 1"&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Unfortunately the documentation lacks description how to work with lists and "sub-parameters" (like "position.bottom") in the CLI.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Edit:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Later I found that&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;position.bottom "testsection 1"&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;is just a systematic representation of this JSON code excerpt:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;"position": {&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "bottom": "testsection 1"&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;}&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This representation also handles more deeply nested structures and lists. See a useful example here: &lt;A _jive_internal="true" href="https://community.checkpoint.com/thread/4966#comment-5749" title="https://community.checkpoint.com/thread/4966#comment-5749"&gt;https://community.checkpoint.com/thread/4966#comment-5749&lt;/A&gt; &lt;/P&gt;&lt;P&gt;I think that this should be described in the API documentation.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Dec 2016 17:18:05 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Add-Rule-By-Section-Title/m-p/2877#M226</guid>
      <dc:creator>Václav_Brožík</dc:creator>
      <dc:date>2016-12-14T17:18:05Z</dc:date>
    </item>
  </channel>
</rss>

