<?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 set-access-rule - API in API / CLI Discussion</title>
    <link>https://community.checkpoint.com/t5/API-CLI-Discussion/set-access-rule-API/m-p/2499#M140</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I was looking at moving a rule from position 1 to 3 with the following:&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;&amp;nbsp; "uid": "&lt;EM&gt;rule-uid-here&lt;/EM&gt;",&lt;/P&gt;&lt;P&gt;&amp;nbsp; "layer" : "Network",&lt;/P&gt;&lt;P&gt;&amp;nbsp; "new-position" : 3,&lt;/P&gt;&lt;P&gt;&amp;nbsp; "details-level" : "full"&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Response: 400 Bad Request&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;&amp;nbsp; "code": "generic_err_invalid_parameter",&lt;/P&gt;&lt;P&gt;&amp;nbsp; "message": "new-position parameter temporarily unsupported"&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there a way I can simply move rules around without deleting/adding them?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Originally, instead of using "new-position" : 3, I was using "position" : 3, which returns a status 200 OK but was not moving the rule. Should it be returning status 200 OK when using "position"? &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 07 Jul 2016 14:54:53 GMT</pubDate>
    <dc:creator>Joshua_Boerum</dc:creator>
    <dc:date>2016-07-07T14:54:53Z</dc:date>
    <item>
      <title>set-access-rule - API</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/set-access-rule-API/m-p/2499#M140</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I was looking at moving a rule from position 1 to 3 with the following:&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;&amp;nbsp; "uid": "&lt;EM&gt;rule-uid-here&lt;/EM&gt;",&lt;/P&gt;&lt;P&gt;&amp;nbsp; "layer" : "Network",&lt;/P&gt;&lt;P&gt;&amp;nbsp; "new-position" : 3,&lt;/P&gt;&lt;P&gt;&amp;nbsp; "details-level" : "full"&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Response: 400 Bad Request&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;&amp;nbsp; "code": "generic_err_invalid_parameter",&lt;/P&gt;&lt;P&gt;&amp;nbsp; "message": "new-position parameter temporarily unsupported"&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there a way I can simply move rules around without deleting/adding them?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Originally, instead of using "new-position" : 3, I was using "position" : 3, which returns a status 200 OK but was not moving the rule. Should it be returning status 200 OK when using "position"? &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Jul 2016 14:54:53 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/set-access-rule-API/m-p/2499#M140</guid>
      <dc:creator>Joshua_Boerum</dc:creator>
      <dc:date>2016-07-07T14:54:53Z</dc:date>
    </item>
    <item>
      <title>Re: set-access-rule - API</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/set-access-rule-API/m-p/2500#M141</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;The set-access-rule API does not have a "new-position" or "position" arguments. See &lt;A href="https://sc1.checkpoint.com/documents/R80/APIs/index.html#web/set-access-rule"&gt;https://sc1.checkpoint.com/documents/R80/APIs/index.html#web/set-access-rule&lt;/A&gt; &lt;/P&gt;&lt;P&gt;Unfortunately, you cannot re-position a rule using the existing APIs. This is a feature that we'd like to add to one of the upcoming releases.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Jul 2016 15:33:43 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/set-access-rule-API/m-p/2500#M141</guid>
      <dc:creator>Uri_Bialik</dc:creator>
      <dc:date>2016-07-07T15:33:43Z</dc:date>
    </item>
    <item>
      <title>Re: set-access-rule - API</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/set-access-rule-API/m-p/154975#M7052</link>
      <description>&lt;P&gt;That is weird. In the documentation you have the&amp;nbsp;&lt;SPAN&gt;"new-position" argument since the API v1:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;A href="https://sc1.checkpoint.com/documents/latest/APIs/index.html#set-access-rule~v1%20" target="_blank" rel="noopener"&gt;https://sc1.checkpoint.com/documents/latest/APIs/index.html#set-access-rule~v1%20&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Is it a mistake in the documentation?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I am currently using this argument with R81.10 (API v1.8).&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 14 Aug 2022 16:21:59 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/set-access-rule-API/m-p/154975#M7052</guid>
      <dc:creator>Václav_Brožík</dc:creator>
      <dc:date>2022-08-14T16:21:59Z</dc:date>
    </item>
    <item>
      <title>Re: set-access-rule - API</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/set-access-rule-API/m-p/154978#M7053</link>
      <description>&lt;P&gt;There is definitely no argument named simply&amp;nbsp;"position" in the syntax of "set access-rule" API.&lt;/P&gt;
&lt;P&gt;Testing a quick example via MGMT CLI in R81.10 works as expected otherwise i.e.&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;set access-rule rule-number 2 new-position 1 layer "Network" --format json&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 15 Aug 2022 01:38:00 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/set-access-rule-API/m-p/154978#M7053</guid>
      <dc:creator>Chris_Atkinson</dc:creator>
      <dc:date>2022-08-15T01:38:00Z</dc:date>
    </item>
  </channel>
</rss>

