<?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 show-access-rulebase API request: data of &amp;quot;creation-time&amp;quot; and &amp;quot;modification-time&amp;quot; the same. in API / CLI Discussion</title>
    <link>https://community.checkpoint.com/t5/API-CLI-Discussion/show-access-rulebase-API-request-data-of-quot-creation-time-quot/m-p/209992#M8424</link>
    <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to fetch data of all rules, which got created within the last year.&amp;nbsp;&lt;/P&gt;&lt;P&gt;As far as I can see is that the "creation-time" field of every rule gets overwritten by the same value which stands in "modification-time".&lt;/P&gt;&lt;P&gt;Is this a known bug or is it intentional?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://sc1.checkpoint.com/documents/latest/APIs/index.html#cli/show-access-rulebase~v1.9.1%20" target="_blank"&gt;https://sc1.checkpoint.com/documents/latest/APIs/index.html#cli/show-access-rulebase~v1.9.1%20&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Kind Regards,&lt;/P&gt;&lt;P&gt;Fabian&lt;/P&gt;</description>
    <pubDate>Fri, 29 Mar 2024 11:15:55 GMT</pubDate>
    <dc:creator>fabiankoch</dc:creator>
    <dc:date>2024-03-29T11:15:55Z</dc:date>
    <item>
      <title>show-access-rulebase API request: data of "creation-time" and "modification-time" the same.</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/show-access-rulebase-API-request-data-of-quot-creation-time-quot/m-p/209992#M8424</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to fetch data of all rules, which got created within the last year.&amp;nbsp;&lt;/P&gt;&lt;P&gt;As far as I can see is that the "creation-time" field of every rule gets overwritten by the same value which stands in "modification-time".&lt;/P&gt;&lt;P&gt;Is this a known bug or is it intentional?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://sc1.checkpoint.com/documents/latest/APIs/index.html#cli/show-access-rulebase~v1.9.1%20" target="_blank"&gt;https://sc1.checkpoint.com/documents/latest/APIs/index.html#cli/show-access-rulebase~v1.9.1%20&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Kind Regards,&lt;/P&gt;&lt;P&gt;Fabian&lt;/P&gt;</description>
      <pubDate>Fri, 29 Mar 2024 11:15:55 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/show-access-rulebase-API-request-data-of-quot-creation-time-quot/m-p/209992#M8424</guid>
      <dc:creator>fabiankoch</dc:creator>
      <dc:date>2024-03-29T11:15:55Z</dc:date>
    </item>
    <item>
      <title>Re: show-access-rulebase API request: data of "creation-time" and "modification-time&amp;</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/show-access-rulebase-API-request-data-of-quot-creation-time-quot/m-p/210004#M8425</link>
      <description>&lt;P&gt;The only time I've seen the&amp;nbsp;creation-time be inaccurate is when you upgrade a management with existing rules to R80+. The creation-time in that case reflects when you upgraded rather than when the rule was originally created on R≤77. I just confirmed with this command that I have plenty of rules on R81.10 and R81.20 managements which were modified after being created:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;mgmt_cli -f json -r true show access-rulebase \
uid 00001111-2222-3333-4444-555566667777 \
limit 500 offset 0 \
| jq -c '.rulebase[]
| if has("rulebase") then .rulebase[]|. else . end
| select(."meta-info"."creation-time"."iso-8601" != ."meta-info"."last-modify-time"."iso-8601")
| [.uid,."meta-info"."creation-time"."iso-8601",."meta-info"."last-modify-time"."iso-8601"]'&lt;/LI-CODE&gt;
&lt;P&gt;Of course, you should replace my fake UUID (00001111-2222-3333-4444-555566667777) with the real UUID of one of your access layers. Also adjust the offset to sweep through the layer as needed.&lt;/P&gt;</description>
      <pubDate>Fri, 29 Mar 2024 15:14:07 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/show-access-rulebase-API-request-data-of-quot-creation-time-quot/m-p/210004#M8425</guid>
      <dc:creator>Bob_Zimmerman</dc:creator>
      <dc:date>2024-03-29T15:14:07Z</dc:date>
    </item>
    <item>
      <title>Re: show-access-rulebase API request: data of "creation-time" and "modification-time&amp;</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/show-access-rulebase-API-request-data-of-quot-creation-time-quot/m-p/210354#M8458</link>
      <description>&lt;P&gt;For me, it is currently incomprehensible according to which behavior the data changes.&amp;nbsp;&lt;/P&gt;&lt;P&gt;That makes it really difficult to rely on that data, because you don't know if the data is correct and consistent.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I will now check some of the newer rules and their dates to see if they are correct.&lt;/P&gt;&lt;P&gt;Thank you for your reply to my issue.&lt;/P&gt;</description>
      <pubDate>Wed, 03 Apr 2024 13:31:32 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/show-access-rulebase-API-request-data-of-quot-creation-time-quot/m-p/210354#M8458</guid>
      <dc:creator>fabiankoch</dc:creator>
      <dc:date>2024-04-03T13:31:32Z</dc:date>
    </item>
  </channel>
</rss>

