<?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 -error &amp;quot;message&amp;quot; : &amp;quot;Add Any is not allowed&amp;quot; in API / CLI Discussion</title>
    <link>https://community.checkpoint.com/t5/API-CLI-Discussion/set-access-rule-error-quot-message-quot-quot-Add-Any-is-not/m-p/182696#M7744</link>
    <description>&lt;P class=""&gt;HI to all&lt;/P&gt;&lt;P class=""&gt;Since api version 1.7 we &lt;SPAN class=""&gt;cant&lt;/SPAN&gt; use this api as we get this error&amp;nbsp;&lt;/P&gt;&lt;P class=""&gt;{&lt;BR /&gt;&amp;nbsp;&amp;nbsp;"code" : "generic_err_invalid_parameter",&lt;BR /&gt;&amp;nbsp;&amp;nbsp;"message" : "Add Any is not allowed"&lt;BR /&gt;}&lt;/P&gt;&lt;P class=""&gt;How We Send the API:&lt;BR /&gt;https://&amp;lt;HOST&amp;gt;/web_api/v1.8/set-access-rule&lt;BR /&gt;{&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;"uid":"B71F2D99-4F3E-4568-93CC-6388D022CA36",&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;"layer":"6a5b4108-a94e-4f5d-974b-8d8c431fdd5f",&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;"service":&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;SPAN class=""&gt;{&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;"add":["Any"]&lt;/SPAN&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;BR /&gt;}&lt;/P&gt;&lt;P class=""&gt;Added here photo of the request and response&lt;/P&gt;&lt;P class=""&gt;&amp;nbsp;&lt;/P&gt;&lt;P class=""&gt;In version under 1.7 it works on the same api and request&lt;/P&gt;&lt;P class=""&gt;Any idea what I might be missing?&lt;/P&gt;</description>
    <pubDate>Wed, 31 May 2023 13:00:33 GMT</pubDate>
    <dc:creator>RamiShahar</dc:creator>
    <dc:date>2023-05-31T13:00:33Z</dc:date>
    <item>
      <title>set-access-rule -error "message" : "Add Any is not allowed"</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/set-access-rule-error-quot-message-quot-quot-Add-Any-is-not/m-p/182696#M7744</link>
      <description>&lt;P class=""&gt;HI to all&lt;/P&gt;&lt;P class=""&gt;Since api version 1.7 we &lt;SPAN class=""&gt;cant&lt;/SPAN&gt; use this api as we get this error&amp;nbsp;&lt;/P&gt;&lt;P class=""&gt;{&lt;BR /&gt;&amp;nbsp;&amp;nbsp;"code" : "generic_err_invalid_parameter",&lt;BR /&gt;&amp;nbsp;&amp;nbsp;"message" : "Add Any is not allowed"&lt;BR /&gt;}&lt;/P&gt;&lt;P class=""&gt;How We Send the API:&lt;BR /&gt;https://&amp;lt;HOST&amp;gt;/web_api/v1.8/set-access-rule&lt;BR /&gt;{&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;"uid":"B71F2D99-4F3E-4568-93CC-6388D022CA36",&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;"layer":"6a5b4108-a94e-4f5d-974b-8d8c431fdd5f",&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;"service":&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;SPAN class=""&gt;{&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;"add":["Any"]&lt;/SPAN&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;BR /&gt;}&lt;/P&gt;&lt;P class=""&gt;Added here photo of the request and response&lt;/P&gt;&lt;P class=""&gt;&amp;nbsp;&lt;/P&gt;&lt;P class=""&gt;In version under 1.7 it works on the same api and request&lt;/P&gt;&lt;P class=""&gt;Any idea what I might be missing?&lt;/P&gt;</description>
      <pubDate>Wed, 31 May 2023 13:00:33 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/set-access-rule-error-quot-message-quot-quot-Add-Any-is-not/m-p/182696#M7744</guid>
      <dc:creator>RamiShahar</dc:creator>
      <dc:date>2023-05-31T13:00:33Z</dc:date>
    </item>
    <item>
      <title>Re: set-access-rule -error "message" : "Add Any is not allowed"</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/set-access-rule-error-quot-message-quot-quot-Add-Any-is-not/m-p/182705#M7745</link>
      <description>&lt;P&gt;I cant open photo you attached, would you mind send the command you did? I can try it in my lab on R81.20&lt;/P&gt;
&lt;P&gt;Andy&lt;/P&gt;</description>
      <pubDate>Wed, 31 May 2023 13:17:19 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/set-access-rule-error-quot-message-quot-quot-Add-Any-is-not/m-p/182705#M7745</guid>
      <dc:creator>the_rock</dc:creator>
      <dc:date>2023-05-31T13:17:19Z</dc:date>
    </item>
    <item>
      <title>Re: set-access-rule -error "message" : "Add Any is not allowed"</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/set-access-rule-error-quot-message-quot-quot-Add-Any-is-not/m-p/182779#M7752</link>
      <description>&lt;P class=""&gt;Sure&amp;nbsp;&lt;/P&gt;&lt;P class=""&gt;This is the request's "url"&lt;/P&gt;&lt;P class=""&gt;https://&amp;lt;CP_IP&amp;gt;/web_api/v1.7/set-access-rule&lt;/P&gt;&lt;P class=""&gt;Body:&amp;nbsp;&lt;/P&gt;&lt;P class=""&gt;{&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;&amp;nbsp;&amp;nbsp;"name"&lt;/SPAN&gt;&amp;nbsp;:&amp;nbsp;"88c36229-e60d-4590-a5d9-387344dba9f1",&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;&amp;nbsp;&amp;nbsp;"layer"&lt;/SPAN&gt;&amp;nbsp;:&amp;nbsp;"8a994dd3-993e-4c0c-92a1-a8630b153f4c",&lt;/P&gt;&lt;P class=""&gt;"service":&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;"add":["Any"]&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;/SPAN&gt;&amp;nbsp;&lt;/P&gt;&lt;P class=""&gt;}&lt;/P&gt;&lt;P class=""&gt;&amp;nbsp;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;name=&lt;/SPAN&gt; ruleUID&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;layer=NetowrkLayerUID&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&amp;nbsp;&lt;/P&gt;&lt;P class=""&gt;Result&lt;/P&gt;&lt;P class=""&gt;{&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;"code":&lt;/SPAN&gt;&amp;nbsp;"generic_err_invalid_parameter",&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;"message":&lt;/SPAN&gt;&amp;nbsp;"Add&amp;nbsp;Any&amp;nbsp;is&amp;nbsp;not&amp;nbsp;allowed"&lt;/P&gt;&lt;P class=""&gt;}&lt;/P&gt;</description>
      <pubDate>Wed, 31 May 2023 17:37:05 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/set-access-rule-error-quot-message-quot-quot-Add-Any-is-not/m-p/182779#M7752</guid>
      <dc:creator>RamiShahar</dc:creator>
      <dc:date>2023-05-31T17:37:05Z</dc:date>
    </item>
    <item>
      <title>Re: set-access-rule -error "message" : "Add Any is not allowed"</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/set-access-rule-error-quot-message-quot-quot-Add-Any-is-not/m-p/182780#M7753</link>
      <description>&lt;P&gt;Will test soon.&lt;/P&gt;
&lt;P&gt;Andy&lt;/P&gt;</description>
      <pubDate>Wed, 31 May 2023 17:38:21 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/set-access-rule-error-quot-message-quot-quot-Add-Any-is-not/m-p/182780#M7753</guid>
      <dc:creator>the_rock</dc:creator>
      <dc:date>2023-05-31T17:38:21Z</dc:date>
    </item>
    <item>
      <title>Re: set-access-rule -error "message" : "Add Any is not allowed"</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/set-access-rule-error-quot-message-quot-quot-Add-Any-is-not/m-p/182781#M7754</link>
      <description>&lt;P&gt;All I get is below...&lt;/P&gt;
&lt;PRE&gt;{
  "code" : "generic_err_missing_session_id",
  "message" : "No query parameters are found"
}&lt;/PRE&gt;</description>
      <pubDate>Wed, 31 May 2023 17:45:30 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/set-access-rule-error-quot-message-quot-quot-Add-Any-is-not/m-p/182781#M7754</guid>
      <dc:creator>the_rock</dc:creator>
      <dc:date>2023-05-31T17:45:30Z</dc:date>
    </item>
    <item>
      <title>Re: set-access-rule -error "message" : "Add Any is not allowed"</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/set-access-rule-error-quot-message-quot-quot-Add-Any-is-not/m-p/182835#M7759</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;correct me if I’m wrong, but I don’t think you can add “Any” to a rule?&lt;BR /&gt;You certainly can’t do it without removing what’s already in the cell first.&lt;BR /&gt;Depending on your version and preference setting, removing all items from a source/destination should result in either an Any or a None (the rule default).&lt;/P&gt;</description>
      <pubDate>Thu, 01 Jun 2023 00:46:51 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/set-access-rule-error-quot-message-quot-quot-Add-Any-is-not/m-p/182835#M7759</guid>
      <dc:creator>PhoneBoy</dc:creator>
      <dc:date>2023-06-01T00:46:51Z</dc:date>
    </item>
    <item>
      <title>Re: set-access-rule -error "message" : "Add Any is not allowed"</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/set-access-rule-error-quot-message-quot-quot-Add-Any-is-not/m-p/182851#M7762</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;When trying to remove the last object from the rule, we get the following:&lt;/P&gt;&lt;P&gt;{&lt;BR /&gt;"code" : "err_validation_failed",&lt;BR /&gt;"message" : "Validation failed with 1 warning",&lt;BR /&gt;"warnings" : [ {&lt;BR /&gt;"message" : "Access Rule contains an object of type 'None' in the Service &amp;amp; Applications column. This rule will never be matched."&lt;BR /&gt;} ]&lt;BR /&gt;}.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We know it worked up until Api version 1.6.&lt;/P&gt;&lt;P&gt;Is there a way to add flag or something so we can successfully remove all objects and make the rule to have 'Any'?&lt;/P&gt;</description>
      <pubDate>Thu, 01 Jun 2023 05:33:33 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/set-access-rule-error-quot-message-quot-quot-Add-Any-is-not/m-p/182851#M7762</guid>
      <dc:creator>YakovKoren</dc:creator>
      <dc:date>2023-06-01T05:33:33Z</dc:date>
    </item>
    <item>
      <title>Re: set-access-rule -error "message" : "Add Any is not allowed"</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/set-access-rule-error-quot-message-quot-quot-Add-Any-is-not/m-p/182853#M7764</link>
      <description>&lt;P&gt;&lt;a href="https://community.checkpoint.com/t5/user/viewprofilepage/user-id/7"&gt;@PhoneBoy&lt;/a&gt;&amp;nbsp;is correct.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You cannot add "Any" to an existing collection of services.&lt;/P&gt;
&lt;P&gt;You can set the&amp;nbsp;entire collection to "Any":&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class=""&gt;https://&amp;lt;CP_IP&amp;gt;/web_api/v1.7/set-access-rule&lt;/P&gt;
&lt;P class=""&gt;Body:&amp;nbsp;&lt;/P&gt;
&lt;P class=""&gt;{&lt;/P&gt;
&lt;P class=""&gt;&lt;SPAN class=""&gt;&amp;nbsp;&amp;nbsp;"name"&lt;/SPAN&gt;&amp;nbsp;:&amp;nbsp;"88c36229-e60d-4590-a5d9-387344dba9f1",&lt;/P&gt;
&lt;P class=""&gt;&lt;SPAN class=""&gt;&amp;nbsp;&amp;nbsp;"layer"&lt;/SPAN&gt;&amp;nbsp;:&amp;nbsp;"8a994dd3-993e-4c0c-92a1-a8630b153f4c",&lt;/P&gt;
&lt;P class=""&gt;&amp;nbsp; "&lt;STRONG&gt;service&lt;/STRONG&gt;"&amp;nbsp;&lt;SPAN class=""&gt;: ["&lt;STRONG&gt;Any&lt;/STRONG&gt;"]&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=""&gt;}&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 01 Jun 2023 06:39:06 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/set-access-rule-error-quot-message-quot-quot-Add-Any-is-not/m-p/182853#M7764</guid>
      <dc:creator>Omer_Kleinstern</dc:creator>
      <dc:date>2023-06-01T06:39:06Z</dc:date>
    </item>
    <item>
      <title>Re: set-access-rule -error "message" : "Add Any is not allowed"</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/set-access-rule-error-quot-message-quot-quot-Add-Any-is-not/m-p/182858#M7766</link>
      <description>&lt;P&gt;Works!&lt;/P&gt;&lt;P&gt;Thank you for the fast response!&lt;/P&gt;</description>
      <pubDate>Thu, 01 Jun 2023 07:08:12 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/set-access-rule-error-quot-message-quot-quot-Add-Any-is-not/m-p/182858#M7766</guid>
      <dc:creator>YakovKoren</dc:creator>
      <dc:date>2023-06-01T07:08:12Z</dc:date>
    </item>
    <item>
      <title>Re: set-access-rule -error "message" : "Add Any is not allowed"</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/set-access-rule-error-quot-message-quot-quot-Add-Any-is-not/m-p/182868#M7767</link>
      <description>&lt;P&gt;Thx for your time and help&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 01 Jun 2023 07:51:32 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/set-access-rule-error-quot-message-quot-quot-Add-Any-is-not/m-p/182868#M7767</guid>
      <dc:creator>RamiShahar</dc:creator>
      <dc:date>2023-06-01T07:51:32Z</dc:date>
    </item>
    <item>
      <title>Re: set-access-rule -error "message" : "Add Any is not allowed"</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/set-access-rule-error-quot-message-quot-quot-Add-Any-is-not/m-p/182927#M7768</link>
      <description>&lt;P&gt;While you clearly have an answer, I feel it's worth explaining this difference in behavior.&lt;BR /&gt;In R81.10,&amp;nbsp;we added "None" as a possible entry for the Source/Destination/Service field.&lt;BR /&gt;If a rule contains "none" in the Source/Destination/Service field, no traffic will match it.&lt;BR /&gt;You can change the default behavior for the Source/Destination/Service field when:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;New rules are added (previously this was always any any any drop)&lt;/LI&gt;
&lt;LI&gt;When the last item in the cell is removed (i.e. does it become Any or None)&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;Refer to the following screenshot:&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/21227i87AE031A7F1C4F11/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;If you're wanting to explicitly set the field to Any, it should be done as&amp;nbsp;&lt;a href="https://community.checkpoint.com/t5/user/viewprofilepage/user-id/37502"&gt;@Omer_Kleinstern&lt;/a&gt;&amp;nbsp;advised.&lt;/P&gt;</description>
      <pubDate>Thu, 01 Jun 2023 14:18:03 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/set-access-rule-error-quot-message-quot-quot-Add-Any-is-not/m-p/182927#M7768</guid>
      <dc:creator>PhoneBoy</dc:creator>
      <dc:date>2023-06-01T14:18:03Z</dc:date>
    </item>
  </channel>
</rss>

