<?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: XML API response for predefined EDL only returns 1 value instead of the entire list in General Topics</title>
    <link>https://live.paloaltonetworks.com/t5/general-topics/xml-api-response-for-predefined-edl-only-returns-1-value-instead/m-p/522374#M108211</link>
    <description>&lt;P&gt;Hi &lt;a href="https://live.paloaltonetworks.com/t5/user/viewprofilepage/user-id/60650"&gt;@mslavens&lt;/a&gt; ,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'm not seeing the same thing on my lab so I'm not sure why it's happening like this for you.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;That being said, I notice in your reply that the total-count=1257 and the count=1 ... which is why it only returns 1 line for you.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'm not sure why the count=1 in your case but you can manually change this value using the &amp;lt;num-records&amp;gt; tags.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Try this:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;lt;request&amp;gt;&amp;lt;system&amp;gt;&amp;lt;external-list&amp;gt;&amp;lt;show&amp;gt;&amp;lt;type&amp;gt;&amp;lt;predefined-ip&amp;gt;&amp;lt;name&amp;gt;panw-torexit-ip-list&amp;lt;/name&amp;gt;&lt;STRONG&gt;&amp;lt;num-records&amp;gt;1257&amp;lt;/num-records&amp;gt;&lt;/STRONG&gt;&amp;lt;/predefined-ip&amp;gt;&amp;lt;/type&amp;gt;&amp;lt;/show&amp;gt;&amp;lt;/external-list&amp;gt;&amp;lt;/system&amp;gt;&amp;lt;/request&amp;gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If the number of IP addresses changes you'll have to change the num-records value as well so it's not ideal.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hope this helps.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;-Kiwi.&lt;/P&gt;
&lt;DIV id="ConnectiveDocSignExtentionInstalled" data-extension-version="1.0.4"&gt;&amp;nbsp;&lt;/DIV&gt;</description>
    <pubDate>Thu, 24 Nov 2022 12:27:34 GMT</pubDate>
    <dc:creator>kiwi</dc:creator>
    <dc:date>2022-11-24T12:27:34Z</dc:date>
    <item>
      <title>XML API response for predefined EDL only returns 1 value instead of the entire list</title>
      <link>https://live.paloaltonetworks.com/t5/general-topics/xml-api-response-for-predefined-edl-only-returns-1-value-instead/m-p/519428#M107699</link>
      <description>&lt;P&gt;Hi there,&lt;BR /&gt;&lt;BR /&gt;Has any one been able to successfully use the XML API to query the predefined EDL lists and have the ENTIRE list returned back in the response?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;When I attempt to query say the panw-torexit-ip-list, the XML response only returns using this command:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;https://&amp;lt;firewall&amp;gt;/api/?REST_API_TOKEN=**********&amp;amp;type=op&amp;amp;cmd=%3Crequest%3E%3Csystem%3E%3Cexternal-list%3E%3Cshow%3E%3Ctype%3E%3Cpredefined-ip%3E%3Cname%3Epanw-torexit-ip-list%3C%2Fname%3E%3C%2Fpredefined-ip%3E%3C%2Ftype%3E%3C%2Fshow%3E%3C%2Fexternal-list%3E%3C%2Fsystem%3E%3C%2Frequest%3E&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I only get one member returned:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;DIV class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;&amp;lt;response&lt;SPAN class=""&gt;&lt;SPAN&gt;&amp;nbsp;&lt;SPAN class=""&gt;status="&lt;SPAN class=""&gt;success"&amp;gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;
&lt;DIV class=""&gt;
&lt;DIV id="folder1" class=""&gt;
&lt;DIV class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;&amp;lt;result&lt;SPAN class=""&gt;&lt;SPAN&gt;&amp;nbsp;&lt;SPAN class=""&gt;total-count="&lt;SPAN class=""&gt;1257"&lt;SPAN class=""&gt;&lt;SPAN&gt;&amp;nbsp;&lt;SPAN class=""&gt;count="&lt;SPAN class=""&gt;1"&amp;gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;
&lt;DIV class=""&gt;
&lt;DIV id="folder2" class=""&gt;
&lt;DIV class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;&amp;lt;external-list&amp;gt;&lt;/SPAN&gt;&lt;/SPAN&gt;
&lt;DIV class=""&gt;
&lt;DIV id="folder3" class=""&gt;
&lt;DIV class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;&amp;lt;valid-members&amp;gt;&lt;/SPAN&gt;&lt;/SPAN&gt;
&lt;DIV class=""&gt;
&lt;DIV class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;&amp;lt;member&amp;gt;&lt;SPAN&gt;2.58.56.101&lt;SPAN class=""&gt;&amp;lt;/member&amp;gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;
&lt;DIV class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;&amp;lt;/valid-members&amp;gt;&lt;/SPAN&gt;&lt;/SPAN&gt;
&lt;DIV class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;&amp;lt;/external-list&amp;gt;&lt;/SPAN&gt;&lt;/SPAN&gt;
&lt;DIV class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;&amp;lt;/result&amp;gt;&lt;/SPAN&gt;&lt;/SPAN&gt;
&lt;DIV class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;&amp;lt;/response&amp;gt;&lt;/SPAN&gt;&lt;/SPAN&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here is the XML syntax that i'm using:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;lt;request&amp;gt;&amp;lt;system&amp;gt;&amp;lt;external-list&amp;gt;&amp;lt;show&amp;gt;&amp;lt;type&amp;gt;&amp;lt;predefined-ip&amp;gt;&amp;lt;name&amp;gt;panw-torexit-ip-list&amp;lt;/name&amp;gt;&amp;lt;/predefined-ip&amp;gt;&amp;lt;/type&amp;gt;&amp;lt;/show&amp;gt;&amp;lt;/external-list&amp;gt;&amp;lt;/system&amp;gt;&amp;lt;/request&amp;gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I've attempted to query this EDL from the CLI on the firewall and the entire EDL is returned... I'm just not able to get the entire list returned via API.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Michael&lt;/P&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;</description>
      <pubDate>Thu, 27 Oct 2022 17:05:04 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/general-topics/xml-api-response-for-predefined-edl-only-returns-1-value-instead/m-p/519428#M107699</guid>
      <dc:creator>mslavens</dc:creator>
      <dc:date>2022-10-27T17:05:04Z</dc:date>
    </item>
    <item>
      <title>Re: XML API response for predefined EDL only returns 1 value instead of the entire list</title>
      <link>https://live.paloaltonetworks.com/t5/general-topics/xml-api-response-for-predefined-edl-only-returns-1-value-instead/m-p/522374#M108211</link>
      <description>&lt;P&gt;Hi &lt;a href="https://live.paloaltonetworks.com/t5/user/viewprofilepage/user-id/60650"&gt;@mslavens&lt;/a&gt; ,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'm not seeing the same thing on my lab so I'm not sure why it's happening like this for you.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;That being said, I notice in your reply that the total-count=1257 and the count=1 ... which is why it only returns 1 line for you.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'm not sure why the count=1 in your case but you can manually change this value using the &amp;lt;num-records&amp;gt; tags.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Try this:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;lt;request&amp;gt;&amp;lt;system&amp;gt;&amp;lt;external-list&amp;gt;&amp;lt;show&amp;gt;&amp;lt;type&amp;gt;&amp;lt;predefined-ip&amp;gt;&amp;lt;name&amp;gt;panw-torexit-ip-list&amp;lt;/name&amp;gt;&lt;STRONG&gt;&amp;lt;num-records&amp;gt;1257&amp;lt;/num-records&amp;gt;&lt;/STRONG&gt;&amp;lt;/predefined-ip&amp;gt;&amp;lt;/type&amp;gt;&amp;lt;/show&amp;gt;&amp;lt;/external-list&amp;gt;&amp;lt;/system&amp;gt;&amp;lt;/request&amp;gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If the number of IP addresses changes you'll have to change the num-records value as well so it's not ideal.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hope this helps.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;-Kiwi.&lt;/P&gt;
&lt;DIV id="ConnectiveDocSignExtentionInstalled" data-extension-version="1.0.4"&gt;&amp;nbsp;&lt;/DIV&gt;</description>
      <pubDate>Thu, 24 Nov 2022 12:27:34 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/general-topics/xml-api-response-for-predefined-edl-only-returns-1-value-instead/m-p/522374#M108211</guid>
      <dc:creator>kiwi</dc:creator>
      <dc:date>2022-11-24T12:27:34Z</dc:date>
    </item>
  </channel>
</rss>

