<?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: Cortex XDR API get_endpoints vs get_endpoint in Cortex XDR Discussions</title>
    <link>https://live.paloaltonetworks.com/t5/cortex-xdr-discussions/cortex-xdr-api-get-endpoints-vs-get-endpoint/m-p/588070#M6744</link>
    <description>&lt;P&gt;The /public_api/v1/endpoints/get_endpoints and /public_api/v1/endpoints/get_endpoint APIs may have different underlying implementations or data consistency checks, which could explain the discrepancy in the number of records returned.&amp;nbsp;One API might be using cached data, which can lead to stale or inconsistent results.&amp;nbsp;If the data source is not perfectly synchronized between calls, the results may differ.&amp;nbsp;The APIs might be designed to return different sets of data, with one being more comprehensive than the other.&amp;nbsp;With limits on records per request, subsequent calls might be hitting different data snapshots.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 28 May 2024 09:12:24 GMT</pubDate>
    <dc:creator>robert2003b</dc:creator>
    <dc:date>2024-05-28T09:12:24Z</dc:date>
    <item>
      <title>Cortex XDR API get_endpoints vs get_endpoint</title>
      <link>https://live.paloaltonetworks.com/t5/cortex-xdr-discussions/cortex-xdr-api-get-endpoints-vs-get-endpoint/m-p/588003#M6739</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I've been using python script to get all endpoints&amp;nbsp;&lt;STRONG&gt;/public_api/v1/endpoints/get_endpoints&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;(&lt;A href="https://docs-cortex.paloaltonetworks.com/r/Cortex-XDR-REST-API/Get-all-Endpoints" target="_blank" rel="nofollow noopener noreferrer"&gt;https://docs-cortex.paloaltonetworks.com/r/Cortex-XDR-REST-API/Get-all-Endpoints&lt;/A&gt;).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Recently there was another business requirement to get OS type of all endpoints and&amp;nbsp;&lt;STRONG&gt;/public_api/v1/endpoints/get_endpoint&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;seems to have more data and contain fields I need&amp;nbsp; (&lt;A href="https://docs-cortex.paloaltonetworks.com/r/Cortex-XDR-REST-API/Get-Endpoint" target="_blank" rel="nofollow noopener noreferrer"&gt;https://docs-cortex.paloaltonetworks.com/r/Cortex-XDR-REST-API/Get-Endpoint&lt;/A&gt;). Since there is a limit of 100 record per request I loop request till I get all data.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The problem is that APIs return different number of unique endpoints, first one returns about 7500 records, second one about 5000. Plus, when I retry query using second API results fluctuate a bit.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;UPDATE:&lt;BR /&gt;I wasn't able to figure out why I don't get all data from &lt;STRONG&gt;/public_api/v1/endpoints/get_endpoint &lt;/STRONG&gt;and decided to go with XQL query (&lt;A href="https://docs-cortex.paloaltonetworks.com/r/Cortex-XDR/Cortex-XDR-API-Reference/Running-XQL-Query-APIs" target="_blank"&gt;https://docs-cortex.paloaltonetworks.com/r/Cortex-XDR/Cortex-XDR-API-Reference/Running-XQL-Query-APIs&lt;/A&gt;). Works fine and I'm able to get all my endpoints.&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 28 May 2024 07:18:22 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/cortex-xdr-discussions/cortex-xdr-api-get-endpoints-vs-get-endpoint/m-p/588003#M6739</guid>
      <dc:creator>A.Tskhe624154</dc:creator>
      <dc:date>2024-05-28T07:18:22Z</dc:date>
    </item>
    <item>
      <title>Re: Cortex XDR API get_endpoints vs get_endpoint</title>
      <link>https://live.paloaltonetworks.com/t5/cortex-xdr-discussions/cortex-xdr-api-get-endpoints-vs-get-endpoint/m-p/588070#M6744</link>
      <description>&lt;P&gt;The /public_api/v1/endpoints/get_endpoints and /public_api/v1/endpoints/get_endpoint APIs may have different underlying implementations or data consistency checks, which could explain the discrepancy in the number of records returned.&amp;nbsp;One API might be using cached data, which can lead to stale or inconsistent results.&amp;nbsp;If the data source is not perfectly synchronized between calls, the results may differ.&amp;nbsp;The APIs might be designed to return different sets of data, with one being more comprehensive than the other.&amp;nbsp;With limits on records per request, subsequent calls might be hitting different data snapshots.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 28 May 2024 09:12:24 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/cortex-xdr-discussions/cortex-xdr-api-get-endpoints-vs-get-endpoint/m-p/588070#M6744</guid>
      <dc:creator>robert2003b</dc:creator>
      <dc:date>2024-05-28T09:12:24Z</dc:date>
    </item>
  </channel>
</rss>

