- Access exclusive content
- Connect with peers
- Share your expertise
- Find support resources
10-25-2024 11:45 AM
I'll like to have a real way to filter the fields I want in the responses from the REST Api.
Sadly, at the moment, it's almost impossible to decide which fields the response will include.
My situation is that I have to get all the deployed images from my company, using the Get Image Scan Results | Develop with Palo Alto Networks endpoint. We have 5898 images as of this discussion.
The compact option, or fields parameter values, are not useful as I need the vulnerabilities from the image.
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.
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.
Reducing the fields in the response might not speed up the call but it would at least reduce, significantly, the size of the response.
Click Accept as Solution to acknowledge that the answer to your question has been provided.
The button appears next to the replies on topics you’ve started. The member who gave the solution and all future visitors to this topic will appreciate it!
These simple actions take just seconds of your time, but go a long way in showing appreciation for community members and the LIVEcommunity as a whole!
The LIVEcommunity thanks you for your participation!