<?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: Deleting object even though being used in a rule via API in API / CLI Discussion</title>
    <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Deleting-object-even-though-being-used-in-a-rule-via-API/m-p/70439#M4209</link>
    <description>where-used only shows you where a given object is used. &lt;BR /&gt;See: &lt;A href="https://sc1.checkpoint.com/documents/latest/APIs/index.html?#cli/where-used~v1.5%20" target="_blank"&gt;https://sc1.checkpoint.com/documents/latest/APIs/index.html?#cli/where-used~v1.5%20&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;If you don't know the object, you would use the "show objects" API using the filter parameter to filter on IP (or whatever).&lt;BR /&gt;See: &lt;A href="https://sc1.checkpoint.com/documents/latest/APIs/index.html?#cli/show-objects~v1.5%20" target="_blank"&gt;https://sc1.checkpoint.com/documents/latest/APIs/index.html?#cli/show-objects~v1.5%20&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;To modify rules: &lt;A href="https://sc1.checkpoint.com/documents/latest/APIs/index.html?#cli/set-access-rule~v1.5%20" target="_blank"&gt;https://sc1.checkpoint.com/documents/latest/APIs/index.html?#cli/set-access-rule~v1.5%20&lt;/A&gt;&lt;BR /&gt;Note that objects may be used in places other than rules (e.g. in configuration) so it's important to parse the results of where-used appropriately.&lt;BR /&gt;&lt;BR /&gt;As far as I know, no one has scripted all this together and posted it here, but it's certainly doable.</description>
    <pubDate>Fri, 13 Dec 2019 18:33:08 GMT</pubDate>
    <dc:creator>PhoneBoy</dc:creator>
    <dc:date>2019-12-13T18:33:08Z</dc:date>
    <item>
      <title>Deleting object even though being used in a rule via API</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Deleting-object-even-though-being-used-in-a-rule-via-API/m-p/70411#M4201</link>
      <description>&lt;P&gt;I would like to know if there is any way to do this as I am decommissioning a datacentre that contains over 200 objects to be deleted and they are spread over 800 rules in different policies and doing it manually will take a long time.&lt;/P&gt;</description>
      <pubDate>Fri, 13 Dec 2019 14:43:24 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Deleting-object-even-though-being-used-in-a-rule-via-API/m-p/70411#M4201</guid>
      <dc:creator>FelipeTropeia</dc:creator>
      <dc:date>2019-12-13T14:43:24Z</dc:date>
    </item>
    <item>
      <title>Re: Deleting object even though being used in a rule via API</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Deleting-object-even-though-being-used-in-a-rule-via-API/m-p/70416#M4202</link>
      <description>This is precisely what the where-used API call is for, to help you locate where a particular object is being used.&lt;BR /&gt;So at a high level, you'd loop through the relevant objects to:&lt;BR /&gt;1. Determine what rules (or where else) each object is used.&lt;BR /&gt;2. Remove/replace each usage, being careful not to remove the last entry from a rule so it's Any (which may give you an undesirable result).</description>
      <pubDate>Fri, 13 Dec 2019 16:05:57 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Deleting-object-even-though-being-used-in-a-rule-via-API/m-p/70416#M4202</guid>
      <dc:creator>PhoneBoy</dc:creator>
      <dc:date>2019-12-13T16:05:57Z</dc:date>
    </item>
    <item>
      <title>Re: Deleting object even though being used in a rule via API</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Deleting-object-even-though-being-used-in-a-rule-via-API/m-p/70421#M4206</link>
      <description>But with where-used API could I delete objects that are still being used by a rule? Would you have any scripts developed for this?&lt;BR /&gt;I was thinking of a script that you can search using a network and sub-net so it would show the list of all objects in then you would have the option of generating a file and deleting the objects.</description>
      <pubDate>Fri, 13 Dec 2019 16:26:56 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Deleting-object-even-though-being-used-in-a-rule-via-API/m-p/70421#M4206</guid>
      <dc:creator>FelipeTropeia</dc:creator>
      <dc:date>2019-12-13T16:26:56Z</dc:date>
    </item>
    <item>
      <title>Re: Deleting object even though being used in a rule via API</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Deleting-object-even-though-being-used-in-a-rule-via-API/m-p/70439#M4209</link>
      <description>where-used only shows you where a given object is used. &lt;BR /&gt;See: &lt;A href="https://sc1.checkpoint.com/documents/latest/APIs/index.html?#cli/where-used~v1.5%20" target="_blank"&gt;https://sc1.checkpoint.com/documents/latest/APIs/index.html?#cli/where-used~v1.5%20&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;If you don't know the object, you would use the "show objects" API using the filter parameter to filter on IP (or whatever).&lt;BR /&gt;See: &lt;A href="https://sc1.checkpoint.com/documents/latest/APIs/index.html?#cli/show-objects~v1.5%20" target="_blank"&gt;https://sc1.checkpoint.com/documents/latest/APIs/index.html?#cli/show-objects~v1.5%20&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;To modify rules: &lt;A href="https://sc1.checkpoint.com/documents/latest/APIs/index.html?#cli/set-access-rule~v1.5%20" target="_blank"&gt;https://sc1.checkpoint.com/documents/latest/APIs/index.html?#cli/set-access-rule~v1.5%20&lt;/A&gt;&lt;BR /&gt;Note that objects may be used in places other than rules (e.g. in configuration) so it's important to parse the results of where-used appropriately.&lt;BR /&gt;&lt;BR /&gt;As far as I know, no one has scripted all this together and posted it here, but it's certainly doable.</description>
      <pubDate>Fri, 13 Dec 2019 18:33:08 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Deleting-object-even-though-being-used-in-a-rule-via-API/m-p/70439#M4209</guid>
      <dc:creator>PhoneBoy</dc:creator>
      <dc:date>2019-12-13T18:33:08Z</dc:date>
    </item>
  </channel>
</rss>

