<?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 Removing an object from access-rule through API in API / CLI Discussion</title>
    <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Removing-an-object-from-access-rule-through-API/m-p/70263#M4196</link>
    <description>&lt;P&gt;Helllo everybody.&lt;/P&gt;&lt;P&gt;I'm creating a script to delete to automate the removal of unused objects. I'm having trouble deleting an object used in any access-rule. I create a variable to store the column where the object is used and I'm using this variable in the row, but is not working. Does anyone have any idea for solving this case?&lt;/P&gt;&lt;P&gt;Below is the line.&lt;/P&gt;&lt;P&gt;mgmt_cli -r true -d "$DOMAIN" set access-rule name "$(cat &amp;lt; rulename.json)" layer "$(cat &amp;lt; layer.json)" $(cat &amp;lt; coluna.json).remove "$IP"&lt;/P&gt;&lt;P&gt;I'm referencing files because if I put the variable does not work.&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;</description>
    <pubDate>Thu, 12 Dec 2019 11:49:05 GMT</pubDate>
    <dc:creator>carlosgeib</dc:creator>
    <dc:date>2019-12-12T11:49:05Z</dc:date>
    <item>
      <title>Removing an object from access-rule through API</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Removing-an-object-from-access-rule-through-API/m-p/70263#M4196</link>
      <description>&lt;P&gt;Helllo everybody.&lt;/P&gt;&lt;P&gt;I'm creating a script to delete to automate the removal of unused objects. I'm having trouble deleting an object used in any access-rule. I create a variable to store the column where the object is used and I'm using this variable in the row, but is not working. Does anyone have any idea for solving this case?&lt;/P&gt;&lt;P&gt;Below is the line.&lt;/P&gt;&lt;P&gt;mgmt_cli -r true -d "$DOMAIN" set access-rule name "$(cat &amp;lt; rulename.json)" layer "$(cat &amp;lt; layer.json)" $(cat &amp;lt; coluna.json).remove "$IP"&lt;/P&gt;&lt;P&gt;I'm referencing files because if I put the variable does not work.&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Thu, 12 Dec 2019 11:49:05 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Removing-an-object-from-access-rule-through-API/m-p/70263#M4196</guid>
      <dc:creator>carlosgeib</dc:creator>
      <dc:date>2019-12-12T11:49:05Z</dc:date>
    </item>
    <item>
      <title>Re: Removing an object from access-rule through API</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Removing-an-object-from-access-rule-through-API/m-p/70335#M4199</link>
      <description>Define “not working”—what errors are you getting?&lt;BR /&gt;Do you have it working if you don’t use variables?&lt;BR /&gt;What shell is this in?</description>
      <pubDate>Thu, 12 Dec 2019 18:25:12 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Removing-an-object-from-access-rule-through-API/m-p/70335#M4199</guid>
      <dc:creator>PhoneBoy</dc:creator>
      <dc:date>2019-12-12T18:25:12Z</dc:date>
    </item>
  </channel>
</rss>

