<?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: REST Api: Filtering response fields in Prisma Cloud Discussions</title>
    <link>https://live.paloaltonetworks.com/t5/prisma-cloud-discussions/rest-api-filtering-response-fields/m-p/1219926#M1429</link>
    <description>&lt;P&gt;Did you ever find an answer to this. I have a similar use case where I need to filter what fields are brought back in the API.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 10 Feb 2025 16:22:35 GMT</pubDate>
    <dc:creator>MSchroeder4</dc:creator>
    <dc:date>2025-02-10T16:22:35Z</dc:date>
    <item>
      <title>REST Api: Filtering response fields</title>
      <link>https://live.paloaltonetworks.com/t5/prisma-cloud-discussions/rest-api-filtering-response-fields/m-p/614994#M1341</link>
      <description>&lt;P&gt;I'll like to have a real way to filter the fields I want in the responses from the REST Api.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Sadly, at the moment, it's almost impossible to decide which fields the response will include.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;My situation is that I have to get all the deployed images from my company, using the&amp;nbsp;&lt;A href="https://pan.dev/prisma-cloud/api/cwpp/get-images/" target="_blank"&gt;Get Image Scan Results | Develop with Palo Alto Networks&lt;/A&gt;&amp;nbsp;endpoint. We have&amp;nbsp;5898 images as of this discussion.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The compact option, or fields parameter values, are not useful as I need the vulnerabilities from the image.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Since I can't pick which fields to receive, to be able to get 50 images per call I need to set my client response size to 50ish megabytes!! A little absurd to transfer that much data when it should not be required.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;That's a lot of data for what I actually need and the response for 50 images is kinda slow, taking around 2 seconds per call. I will need 118 calls to get them all which would take approximately 8 minutes.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Reducing the fields in the response might not speed up the call but it would at least reduce, &lt;SPAN&gt;significantly, the size of the response&lt;/SPAN&gt;.&lt;/P&gt;</description>
      <pubDate>Fri, 25 Oct 2024 18:45:21 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/prisma-cloud-discussions/rest-api-filtering-response-fields/m-p/614994#M1341</guid>
      <dc:creator>JDrapeau</dc:creator>
      <dc:date>2024-10-25T18:45:21Z</dc:date>
    </item>
    <item>
      <title>Re: REST Api: Filtering response fields</title>
      <link>https://live.paloaltonetworks.com/t5/prisma-cloud-discussions/rest-api-filtering-response-fields/m-p/1219926#M1429</link>
      <description>&lt;P&gt;Did you ever find an answer to this. I have a similar use case where I need to filter what fields are brought back in the API.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 10 Feb 2025 16:22:35 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/prisma-cloud-discussions/rest-api-filtering-response-fields/m-p/1219926#M1429</guid>
      <dc:creator>MSchroeder4</dc:creator>
      <dc:date>2025-02-10T16:22:35Z</dc:date>
    </item>
  </channel>
</rss>

