<?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: Getting an error when using &amp;quot;set-access-rule&amp;quot; in API / CLI Discussion</title>
    <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Getting-an-error-when-using-quot-set-access-rule-quot/m-p/133167#M6412</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;&lt;/P&gt;</description>
    <pubDate>Wed, 03 Nov 2021 19:09:27 GMT</pubDate>
    <dc:creator>PhoneBoy</dc:creator>
    <dc:date>2021-11-03T19:09:27Z</dc:date>
    <item>
      <title>Getting an error when using "set-access-rule"</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Getting-an-error-when-using-quot-set-access-rule-quot/m-p/133159#M6411</link>
      <description>&lt;P&gt;When I try changing a rule's position using "new-position"on "set-access-rule" api, I get a 400 bad request error and the following message. I only get errors when using "new-position" all other changes appear to work fine. It also doesn't seem to matter what "new-position" format I use (above/below, integer, name/uid).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;{
    "code": "generic_error",
    "message": "Runtime error: com.checkpoint.management.access.objects.access_rulebase.AccessCtrlDomainPlaceholder incompatible with com.checkpoint.objects.rulebase.RulebaseRule"
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Sample code:&lt;BR /&gt;I know in this sample I am mixing UID and Name but I have tried it every way imaginable and still see the same result.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;import requests
import json

url = "https://192.168.200.216:443/web_api/v1.6.1/set-access-rule"

payload = json.dumps({
  "layer": "Network",
  "new-position": {
    "above": "31879488-426a-4d69-bb24-c752f3ef69e8"
  },
  "name": "Research_rule2_modified"
})
headers = {
  'Content-Type': 'application/json',
  'X-chkp-sid': 'INN029GbNQKUkkq9-eYTVIXELO0y-tkXn_zv2BJM6Uw'
}

response = requests.request("POST", url, headers=headers, data=payload)

print(response.text)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I will also add that this is happening on the Global Domain.&lt;/P&gt;</description>
      <pubDate>Wed, 03 Nov 2021 19:56:16 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Getting-an-error-when-using-quot-set-access-rule-quot/m-p/133159#M6411</guid>
      <dc:creator>fly1ng_circus</dc:creator>
      <dc:date>2021-11-03T19:56:16Z</dc:date>
    </item>
    <item>
      <title>Re: Getting an error when using "set-access-rule"</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Getting-an-error-when-using-quot-set-access-rule-quot/m-p/133167#M6412</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;&lt;/P&gt;</description>
      <pubDate>Wed, 03 Nov 2021 19:09:27 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Getting-an-error-when-using-quot-set-access-rule-quot/m-p/133167#M6412</guid>
      <dc:creator>PhoneBoy</dc:creator>
      <dc:date>2021-11-03T19:09:27Z</dc:date>
    </item>
    <item>
      <title>Re: Getting an error when using "set-access-rule"</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Getting-an-error-when-using-quot-set-access-rule-quot/m-p/133169#M6413</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please open a TAC case.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks,&lt;/P&gt;
&lt;P&gt;Omer&lt;/P&gt;</description>
      <pubDate>Wed, 03 Nov 2021 19:27:02 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Getting-an-error-when-using-quot-set-access-rule-quot/m-p/133169#M6413</guid>
      <dc:creator>Omer_Kleinstern</dc:creator>
      <dc:date>2021-11-03T19:27:02Z</dc:date>
    </item>
    <item>
      <title>Re: Getting an error when using "set-access-rule"</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Getting-an-error-when-using-quot-set-access-rule-quot/m-p/137684#M6532</link>
      <description>&lt;P&gt;So Per TAC this is not supported on the MDS, though this is not noted in the API documentation.&lt;/P&gt;</description>
      <pubDate>Tue, 04 Jan 2022 16:31:08 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Getting-an-error-when-using-quot-set-access-rule-quot/m-p/137684#M6532</guid>
      <dc:creator>fly1ng_circus</dc:creator>
      <dc:date>2022-01-04T16:31:08Z</dc:date>
    </item>
  </channel>
</rss>

