<?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 the times of 'Install Policy&amp;quot; in API / CLI Discussion</title>
    <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Getting-the-times-of-Install-Policy-quot/m-p/191926#M8015</link>
    <description>&lt;P&gt;Sadly, you have to filter on the task-name field. The rest of the task's fields depend on the type of task it is, but there is no distinct "task-type" field. Also note the tasks are first-in-first-out. Task 1 is the oldest task in the list. To get recent policy installations, you have to look at the tasks towards the end of the list (thus my 'offset 2500' below).&lt;/P&gt;
&lt;P&gt;Here is an exemplar task object corresponding to a successful policy installation. The policy package's name was Standard, and the firewall's name was DallasSA. Standard detail level first, then full detail level:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;[Expert@DallasSA]# mgmt_cli -f json -r true show tasks limit 500 offset 2500 | jq -c '.tasks[]' | grep "Policy installation" | tail -n 1 | jq .
{
  "task-id": "a8dee8f6-00f4-4a34-9d94-e29fa9ac6328",
  "task-name": "Policy installation - Standard",
  "status": "succeeded",
  "progress-percentage": 100,
  "suppressed": false,
  "comments": "Installation succeeded on DallasSA",
  "meta-info": {
    "lock": "unlocked",
    "validation-state": "ok",
    "last-modify-time": {
      "posix": 1691255301129,
      "iso-8601": "2023-08-05T17:08+0000"
    },
    "last-modifier": "System",
    "creation-time": {
      "posix": 1691255275000,
      "iso-8601": "2023-08-05T17:07+0000"
    },
    "creator": "System"
  }
}

[Expert@DallasSA]# mgmt_cli -f json -r true show tasks limit 500 offset 2500 details-level full | jq -c '.tasks[]' | grep "Policy installation" | tail -n 1 | jq .
{
  "uid": "d3e5cd97-5e4a-4730-a515-7a237a977131",
  "type": "task",
  "domain": {
    "uid": "41e821a0-3720-11e3-aa6e-0800200c9fde",
    "name": "SMC User",
    "domain-type": "domain"
  },
  "task-id": "a8dee8f6-00f4-4a34-9d94-e29fa9ac6328",
  "task-name": "Policy installation - Standard",
  "status": "succeeded",
  "progress-percentage": 100,
  "start-time": {
    "posix": 1691255274991,
    "iso-8601": "2023-08-05T17:07+0000"
  },
  "last-update-time": {
    "posix": 1691255301107,
    "iso-8601": "2023-08-05T17:08+0000"
  },
  "suppressed": false,
  "task-details": [
    {
      "uid": "385ec945-276e-49ed-b0c7-1e793159c713",
      "name": null,
      "domain": {
        "uid": "41e821a0-3720-11e3-aa6e-0800200c9fde",
        "name": "SMC User",
        "domain-type": "domain"
      },
      "color": "black",
      "statusCode": "succeeded",
      "statusDescription": "Succeeded",
      "taskNotification": "d3e5cd97-5e4a-4730-a515-7a237a977131",
      "gatewayId": "ea61e15b-0a8e-e441-a015-31dec0dcd15b",
      "policyId": "f9835641-5436-49fa-97e4-042a9fbb88de",
      "fastInstallStatus": {
        "worksessionId": "19ec3896-de91-4a08-998f-d057cdbac941",
        "gatewayId": "ea61e15b-0a8e-e441-a015-31dec0dcd15b",
        "policyId": "f9835641-5436-49fa-97e4-042a9fbb88de",
        "status": "eligible",
        "detailedReason": []
      },
      "runningStages": [],
      "waitingStages": [],
      "stagesInfo": [
        {
          "type": "info",
          "stage": "modern verification",
          "messages": []
        }
      ],
      "cluster": false,
      "meta-info": {
        "validation-state": "ok",
        "last-modify-time": {
          "posix": 1691255298536,
          "iso-8601": "2023-08-05T17:08+0000"
        },
        "last-modifier": "System",
        "creation-time": {
          "posix": 1691255275622,
          "iso-8601": "2023-08-05T17:07+0000"
        },
        "creator": "System"
      },
      "tags": [],
      "icon": "General/globalsNa",
      "comments": "",
      "display-name": "",
      "customFields": null,
      "gatewayName": "DallasSA",
      "revision": "19ec3896-de91-4a08-998f-d057cdbac941"
    }
  ],
  "comments": "Installation succeeded on DallasSA",
  "color": "black",
  "icon": "General/globalsNa",
  "tags": [],
  "meta-info": {
    "lock": "unlocked",
    "validation-state": "ok",
    "last-modify-time": {
      "posix": 1691255301129,
      "iso-8601": "2023-08-05T17:08+0000"
    },
    "last-modifier": "System",
    "creation-time": {
      "posix": 1691255275000,
      "iso-8601": "2023-08-05T17:07+0000"
    },
    "creator": "System"
  },
  "read-only": false
}&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 07 Sep 2023 15:00:26 GMT</pubDate>
    <dc:creator>Bob_Zimmerman</dc:creator>
    <dc:date>2023-09-07T15:00:26Z</dc:date>
    <item>
      <title>Getting the times of 'Install Policy"</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Getting-the-times-of-Install-Policy-quot/m-p/191850#M8005</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there an easy way to get the install times for the "Install Policy" operations like in the embedded picture, but with a WAPI REST API call?&amp;nbsp; &amp;nbsp;The screenshot is from Audit Logs, from the Checkpoint controller portal.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I can't find any REST API in the documentation.&amp;nbsp; I used 'show-tasks', which doesn't have any&amp;nbsp;"install" references in the"task-name" field (from the REST API's response message).&amp;nbsp; I also tried to use show-logs, but got the permissions error (see embedded picture).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for your prompt help.&lt;/P&gt;</description>
      <pubDate>Thu, 07 Sep 2023 07:00:29 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Getting-the-times-of-Install-Policy-quot/m-p/191850#M8005</guid>
      <dc:creator>pdn</dc:creator>
      <dc:date>2023-09-07T07:00:29Z</dc:date>
    </item>
    <item>
      <title>Re: Getting the times of 'Install Policy"</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Getting-the-times-of-Install-Policy-quot/m-p/191863#M8006</link>
      <description>&lt;P&gt;Here are a few suggestions:&lt;/P&gt;
&lt;P&gt;1| Go directly to the Install Policy log file in $FWDIR/log/install_policy.elg&lt;/P&gt;
&lt;P&gt;2| Use the same shows-tasks command with grep and before and after lines, for example:&lt;/P&gt;
&lt;P&gt;mgmt_cli show tasks status successful details-level standard | grep -A 10 -B 10 "Policy installation"&lt;/P&gt;</description>
      <pubDate>Thu, 07 Sep 2023 08:10:08 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Getting-the-times-of-Install-Policy-quot/m-p/191863#M8006</guid>
      <dc:creator>Tal_Paz-Fridman</dc:creator>
      <dc:date>2023-09-07T08:10:08Z</dc:date>
    </item>
    <item>
      <title>Re: Getting the times of 'Install Policy"</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Getting-the-times-of-Install-Policy-quot/m-p/191898#M8009</link>
      <description>&lt;P&gt;Thanks&amp;nbsp;&lt;a href="https://community.checkpoint.com/t5/user/viewprofilepage/user-id/585"&gt;@Tal_Paz-Fridman&lt;/a&gt;&amp;nbsp;.&amp;nbsp; &amp;nbsp;&lt;/P&gt;&lt;P&gt;I don't think we have permissions to access the Checkpoint FW, and issue CLI commands from our python program to issue the mgmt_cli show tasks command.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;All our calls to the Checkpoint firewall is via REST API calls (Web Services), with a service account.&amp;nbsp; Is there a REST API solution to get the Install Policy times?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 07 Sep 2023 12:34:14 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Getting-the-times-of-Install-Policy-quot/m-p/191898#M8009</guid>
      <dc:creator>pdn</dc:creator>
      <dc:date>2023-09-07T12:34:14Z</dc:date>
    </item>
    <item>
      <title>Re: Getting the times of 'Install Policy"</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Getting-the-times-of-Install-Policy-quot/m-p/191900#M8010</link>
      <description>&lt;P&gt;The API command is one that should be able to run remotely using Web Services&lt;/P&gt;
&lt;P&gt;&lt;A href="https://sc1.checkpoint.com/documents/latest/APIs/index.html#web/show-tasks~v1.9%20" target="_blank"&gt;https://sc1.checkpoint.com/documents/latest/APIs/index.html#web/show-tasks~v1.9%20&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It is important that the administrators using the run the command has the relevant permissions.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 07 Sep 2023 12:47:58 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Getting-the-times-of-Install-Policy-quot/m-p/191900#M8010</guid>
      <dc:creator>Tal_Paz-Fridman</dc:creator>
      <dc:date>2023-09-07T12:47:58Z</dc:date>
    </item>
    <item>
      <title>Re: Getting the times of 'Install Policy"</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Getting-the-times-of-Install-Policy-quot/m-p/191902#M8011</link>
      <description>&lt;P&gt;Yes, we are already using it like below, and search for the firewall and the '&lt;SPAN&gt;policy installation' keyword in the REST API response's&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;"task-name", but all the tasks in the response are for a different (not the one we are interested in) firewall and are related to an automated script running.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Would the WAPI show-tasks call grabs the tasks for all the firewalls in the mgmt controller?&amp;nbsp; I am wondering why I see one firewall in the response, which isn't the firewall that the policy was installed on.&amp;nbsp; Even a max value of 500&amp;nbsp; for the body's parameter "limit", I can't see my target firewall.&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Maybe there is a permission issue I need to look more into.&amp;nbsp; But the service account is admin, so there shouldn't be any permission issue I don't believe.&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;url = &lt;SPAN&gt;f"&lt;/SPAN&gt;&lt;SPAN&gt;{&lt;/SPAN&gt;url&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;SPAN&gt;/show-tasks"&lt;BR /&gt;&lt;/SPAN&gt;body = {&lt;SPAN&gt;"details-level"&lt;/SPAN&gt;: &lt;SPAN&gt;"standard"&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;"limit"&lt;/SPAN&gt;: &lt;SPAN&gt;500&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;"offset"&lt;/SPAN&gt;: &lt;SPAN&gt;0&lt;/SPAN&gt;}&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV&gt;response = &lt;SPAN&gt;self&lt;/SPAN&gt;.session.post(url&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;json&lt;/SPAN&gt;=body&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;verify&lt;/SPAN&gt;=&lt;SPAN&gt;self&lt;/SPAN&gt;.verify)&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Thu, 07 Sep 2023 13:13:21 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Getting-the-times-of-Install-Policy-quot/m-p/191902#M8011</guid>
      <dc:creator>pdn</dc:creator>
      <dc:date>2023-09-07T13:13:21Z</dc:date>
    </item>
    <item>
      <title>Re: Getting the times of 'Install Policy"</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Getting-the-times-of-Install-Policy-quot/m-p/191903#M8012</link>
      <description>&lt;P&gt;&lt;a href="https://community.checkpoint.com/t5/user/viewprofilepage/user-id/585"&gt;@Tal_Paz-Fridman&lt;/a&gt;&amp;nbsp;I just thought of something, so my program is using a 'admin' service account, when making that 'show-tasks' api call.&amp;nbsp; The response only shows tasks from one firewall (the 'wrong' firewall, where the access rule wasn't installed on).&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The policy install was actually done by an admin person, manually (not via our program with a install-policy REST API POST call).&amp;nbsp; Would the show-tasks API call will also grab all the tasks, including those policy install tasks by that admin person?&lt;/P&gt;&lt;P&gt;So far, I only see the 'creator' field being the service account that my program is using, in the response.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Wondering why?&amp;nbsp; Maybe it's a permissions issue, that causes 'show-tasks' not being able to grab all the tasks for all firewalls managed in the mgmt controller?&amp;nbsp; &amp;nbsp;Maybe, the admin service accounts that my program is using needs more permissions roles?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 07 Sep 2023 13:27:15 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Getting-the-times-of-Install-Policy-quot/m-p/191903#M8012</guid>
      <dc:creator>pdn</dc:creator>
      <dc:date>2023-09-07T13:27:15Z</dc:date>
    </item>
    <item>
      <title>Re: Getting the times of 'Install Policy"</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Getting-the-times-of-Install-Policy-quot/m-p/191906#M8013</link>
      <description>&lt;P&gt;The output should show all install policy actions regardless of the administrator.&lt;/P&gt;
&lt;P&gt;Consider running a test where you initiate install policy (or someone in your team), then shortly after check that you see the output using the shows-tasks command.&lt;/P&gt;
&lt;P&gt;Another option would to use the show-logs command:&lt;/P&gt;
&lt;P&gt;mgmt_cli show logs new-query.time-frame last-hour new-query.type audit&lt;/P&gt;
&lt;P&gt;&lt;A href="https://sc1.checkpoint.com/documents/latest/APIs/index.html#cli/show-logs~v1.9%20" target="_blank" rel="noopener"&gt;https://sc1.checkpoint.com/documents/latest/APIs/index.html#cli/show-logs~v1.9%20&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This will allow to go over the same audit logs you attached as an image.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 07 Sep 2023 14:10:36 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Getting-the-times-of-Install-Policy-quot/m-p/191906#M8013</guid>
      <dc:creator>Tal_Paz-Fridman</dc:creator>
      <dc:date>2023-09-07T14:10:36Z</dc:date>
    </item>
    <item>
      <title>Re: Getting the times of 'Install Policy"</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Getting-the-times-of-Install-Policy-quot/m-p/191920#M8014</link>
      <description>&lt;P&gt;Thanks&amp;nbsp;&lt;a href="https://community.checkpoint.com/t5/user/viewprofilepage/user-id/585"&gt;@Tal_Paz-Fridman&lt;/a&gt;, I will go from there and try out per your suggestions.&lt;/P&gt;</description>
      <pubDate>Thu, 07 Sep 2023 14:33:13 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Getting-the-times-of-Install-Policy-quot/m-p/191920#M8014</guid>
      <dc:creator>pdn</dc:creator>
      <dc:date>2023-09-07T14:33:13Z</dc:date>
    </item>
    <item>
      <title>Re: Getting the times of 'Install Policy"</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Getting-the-times-of-Install-Policy-quot/m-p/191926#M8015</link>
      <description>&lt;P&gt;Sadly, you have to filter on the task-name field. The rest of the task's fields depend on the type of task it is, but there is no distinct "task-type" field. Also note the tasks are first-in-first-out. Task 1 is the oldest task in the list. To get recent policy installations, you have to look at the tasks towards the end of the list (thus my 'offset 2500' below).&lt;/P&gt;
&lt;P&gt;Here is an exemplar task object corresponding to a successful policy installation. The policy package's name was Standard, and the firewall's name was DallasSA. Standard detail level first, then full detail level:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;[Expert@DallasSA]# mgmt_cli -f json -r true show tasks limit 500 offset 2500 | jq -c '.tasks[]' | grep "Policy installation" | tail -n 1 | jq .
{
  "task-id": "a8dee8f6-00f4-4a34-9d94-e29fa9ac6328",
  "task-name": "Policy installation - Standard",
  "status": "succeeded",
  "progress-percentage": 100,
  "suppressed": false,
  "comments": "Installation succeeded on DallasSA",
  "meta-info": {
    "lock": "unlocked",
    "validation-state": "ok",
    "last-modify-time": {
      "posix": 1691255301129,
      "iso-8601": "2023-08-05T17:08+0000"
    },
    "last-modifier": "System",
    "creation-time": {
      "posix": 1691255275000,
      "iso-8601": "2023-08-05T17:07+0000"
    },
    "creator": "System"
  }
}

[Expert@DallasSA]# mgmt_cli -f json -r true show tasks limit 500 offset 2500 details-level full | jq -c '.tasks[]' | grep "Policy installation" | tail -n 1 | jq .
{
  "uid": "d3e5cd97-5e4a-4730-a515-7a237a977131",
  "type": "task",
  "domain": {
    "uid": "41e821a0-3720-11e3-aa6e-0800200c9fde",
    "name": "SMC User",
    "domain-type": "domain"
  },
  "task-id": "a8dee8f6-00f4-4a34-9d94-e29fa9ac6328",
  "task-name": "Policy installation - Standard",
  "status": "succeeded",
  "progress-percentage": 100,
  "start-time": {
    "posix": 1691255274991,
    "iso-8601": "2023-08-05T17:07+0000"
  },
  "last-update-time": {
    "posix": 1691255301107,
    "iso-8601": "2023-08-05T17:08+0000"
  },
  "suppressed": false,
  "task-details": [
    {
      "uid": "385ec945-276e-49ed-b0c7-1e793159c713",
      "name": null,
      "domain": {
        "uid": "41e821a0-3720-11e3-aa6e-0800200c9fde",
        "name": "SMC User",
        "domain-type": "domain"
      },
      "color": "black",
      "statusCode": "succeeded",
      "statusDescription": "Succeeded",
      "taskNotification": "d3e5cd97-5e4a-4730-a515-7a237a977131",
      "gatewayId": "ea61e15b-0a8e-e441-a015-31dec0dcd15b",
      "policyId": "f9835641-5436-49fa-97e4-042a9fbb88de",
      "fastInstallStatus": {
        "worksessionId": "19ec3896-de91-4a08-998f-d057cdbac941",
        "gatewayId": "ea61e15b-0a8e-e441-a015-31dec0dcd15b",
        "policyId": "f9835641-5436-49fa-97e4-042a9fbb88de",
        "status": "eligible",
        "detailedReason": []
      },
      "runningStages": [],
      "waitingStages": [],
      "stagesInfo": [
        {
          "type": "info",
          "stage": "modern verification",
          "messages": []
        }
      ],
      "cluster": false,
      "meta-info": {
        "validation-state": "ok",
        "last-modify-time": {
          "posix": 1691255298536,
          "iso-8601": "2023-08-05T17:08+0000"
        },
        "last-modifier": "System",
        "creation-time": {
          "posix": 1691255275622,
          "iso-8601": "2023-08-05T17:07+0000"
        },
        "creator": "System"
      },
      "tags": [],
      "icon": "General/globalsNa",
      "comments": "",
      "display-name": "",
      "customFields": null,
      "gatewayName": "DallasSA",
      "revision": "19ec3896-de91-4a08-998f-d057cdbac941"
    }
  ],
  "comments": "Installation succeeded on DallasSA",
  "color": "black",
  "icon": "General/globalsNa",
  "tags": [],
  "meta-info": {
    "lock": "unlocked",
    "validation-state": "ok",
    "last-modify-time": {
      "posix": 1691255301129,
      "iso-8601": "2023-08-05T17:08+0000"
    },
    "last-modifier": "System",
    "creation-time": {
      "posix": 1691255275000,
      "iso-8601": "2023-08-05T17:07+0000"
    },
    "creator": "System"
  },
  "read-only": false
}&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 07 Sep 2023 15:00:26 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Getting-the-times-of-Install-Policy-quot/m-p/191926#M8015</guid>
      <dc:creator>Bob_Zimmerman</dc:creator>
      <dc:date>2023-09-07T15:00:26Z</dc:date>
    </item>
    <item>
      <title>Re: Getting the times of 'Install Policy"</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Getting-the-times-of-Install-Policy-quot/m-p/191929#M8016</link>
      <description>&lt;P&gt;Thanks&amp;nbsp;&lt;a href="https://community.checkpoint.com/t5/user/viewprofilepage/user-id/27871"&gt;@Bob_Zimmerman&lt;/a&gt;&amp;nbsp; for the feedbacks.&amp;nbsp; As I mentioned before, currently we (our Python program) are only allowed to interact with the Checkpoint via REST API.&amp;nbsp; I will check with my Checkpoint admin guy to see about using the CLI commands&amp;nbsp; and CLI logs.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I just tried to use show-tasks API call, with that large offset value, but got nothing back.&amp;nbsp; Any good explanation why?&lt;/P&gt;&lt;P&gt;Request body:&lt;/P&gt;&lt;P&gt;{&lt;BR /&gt;"details-level": "standard",&lt;BR /&gt;"limit": 500,&lt;BR /&gt;"offset": 2500&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Response:&lt;/P&gt;&lt;P&gt;{&lt;BR /&gt;"tasks": [&lt;BR /&gt;],&lt;BR /&gt;"total": 0&lt;BR /&gt;}&lt;/P&gt;</description>
      <pubDate>Thu, 07 Sep 2023 15:17:05 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Getting-the-times-of-Install-Policy-quot/m-p/191929#M8016</guid>
      <dc:creator>pdn</dc:creator>
      <dc:date>2023-09-07T15:17:05Z</dc:date>
    </item>
    <item>
      <title>Re: Getting the times of 'Install Policy"</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Getting-the-times-of-Install-Policy-quot/m-p/191930#M8017</link>
      <description>&lt;P&gt;I think I got it!&amp;nbsp; It returns nothing since there isn't that many (&amp;gt; 2500) tasks, right?&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I do see my firewall now and the 'Policy installation'.&amp;nbsp; So I just need to loop through, with incrementing offset.&amp;nbsp; Our program currently is using a fixed offset of 0!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you everyone for your feedbacks.&amp;nbsp; I love this Checkpoint forum, so responsive to my questions!&amp;nbsp;&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":thumbs_up:"&gt;👍&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 07 Sep 2023 15:28:24 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Getting-the-times-of-Install-Policy-quot/m-p/191930#M8017</guid>
      <dc:creator>pdn</dc:creator>
      <dc:date>2023-09-07T15:28:24Z</dc:date>
    </item>
    <item>
      <title>Re: Getting the times of 'Install Policy"</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Getting-the-times-of-Install-Policy-quot/m-p/191938#M8019</link>
      <description>&lt;P&gt;Actually, can someone share with me the request's body that will help sort the tasks by 'task-name', then by the 'iso-8601' time of the 'last-modify-time' field?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried (screenshot), but not working.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="show-tasks-1.jpg" style="width: 400px;"&gt;&lt;img src="https://community.checkpoint.com/t5/image/serverpage/image-id/22376i969C5A27210064E6/image-size/medium?v=v2&amp;amp;px=400" role="button" title="show-tasks-1.jpg" alt="show-tasks-1.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;  &lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="show-tasks-2.jpg" style="width: 400px;"&gt;&lt;img src="https://community.checkpoint.com/t5/image/serverpage/image-id/22375i1B3F985D7507C0F9/image-size/medium?v=v2&amp;amp;px=400" role="button" title="show-tasks-2.jpg" alt="show-tasks-2.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 07 Sep 2023 16:01:58 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Getting-the-times-of-Install-Policy-quot/m-p/191938#M8019</guid>
      <dc:creator>pdn</dc:creator>
      <dc:date>2023-09-07T16:01:58Z</dc:date>
    </item>
    <item>
      <title>Re: Getting the times of 'Install Policy"</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Getting-the-times-of-Install-Policy-quot/m-p/191954#M8020</link>
      <description>&lt;P&gt;The body looks correct, but the only valid value for "ASC" or "DESC" is "name". You can't sort by any other keys as of APIv1.9.1.&lt;/P&gt;</description>
      <pubDate>Thu, 07 Sep 2023 19:27:52 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Getting-the-times-of-Install-Policy-quot/m-p/191954#M8020</guid>
      <dc:creator>Bob_Zimmerman</dc:creator>
      <dc:date>2023-09-07T19:27:52Z</dc:date>
    </item>
    <item>
      <title>Re: Getting the times of 'Install Policy"</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Getting-the-times-of-Install-Policy-quot/m-p/191960#M8022</link>
      <description>&lt;P&gt;Not sure why 'filter' doesn't work, even though it's listed in the documentation.&amp;nbsp; &amp;nbsp;So I have v1.8, and still got the&amp;nbsp;"message": "Unrecognized parameter [filter]" error message, with show-tasks.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can you please shred some light?&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="show-tasks-filter.jpg" style="width: 400px;"&gt;&lt;img src="https://community.checkpoint.com/t5/image/serverpage/image-id/22379iB168AA00720C61FD/image-size/medium?v=v2&amp;amp;px=400" role="button" title="show-tasks-filter.jpg" alt="show-tasks-filter.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="show-tasks-filter-2 (1).jpg" style="width: 400px;"&gt;&lt;img src="https://community.checkpoint.com/t5/image/serverpage/image-id/22381iC9A390E828453803/image-size/medium?v=v2&amp;amp;px=400" role="button" title="show-tasks-filter-2 (1).jpg" alt="show-tasks-filter-2 (1).jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="show-tasks-filter-3.jpg" style="width: 400px;"&gt;&lt;img src="https://community.checkpoint.com/t5/image/serverpage/image-id/22382iC4D2746725FA6C62/image-size/medium?v=v2&amp;amp;px=400" role="button" title="show-tasks-filter-3.jpg" alt="show-tasks-filter-3.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;</description>
      <pubDate>Thu, 07 Sep 2023 19:46:44 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Getting-the-times-of-Install-Policy-quot/m-p/191960#M8022</guid>
      <dc:creator>pdn</dc:creator>
      <dc:date>2023-09-07T19:46:44Z</dc:date>
    </item>
    <item>
      <title>Re: Getting the times of 'Install Policy"</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Getting-the-times-of-Install-Policy-quot/m-p/191965#M8023</link>
      <description>&lt;P&gt;Probably a documentation bug. Everything to do with tasks feels very unfinished.&lt;/P&gt;</description>
      <pubDate>Thu, 07 Sep 2023 20:36:09 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Getting-the-times-of-Install-Policy-quot/m-p/191965#M8023</guid>
      <dc:creator>Bob_Zimmerman</dc:creator>
      <dc:date>2023-09-07T20:36:09Z</dc:date>
    </item>
    <item>
      <title>Re: Getting the times of 'Install Policy"</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Getting-the-times-of-Install-Policy-quot/m-p/191966#M8024</link>
      <description>&lt;P&gt;OK then, thanks for the prompt response.&lt;/P&gt;</description>
      <pubDate>Thu, 07 Sep 2023 20:45:43 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Getting-the-times-of-Install-Policy-quot/m-p/191966#M8024</guid>
      <dc:creator>pdn</dc:creator>
      <dc:date>2023-09-07T20:45:43Z</dc:date>
    </item>
  </channel>
</rss>

