- Access exclusive content
- Connect with peers
- Share your expertise
- Find support resources
09-01-2023 06:02 AM
Hello,
I'm trying to use this endpoint:
https://pan.dev/prisma-cloud/api/cspm/post-resource-scan-info/
WIth this payload:
09-09-2023 09:08 PM
Hello Fran.Paris,
Yes, this is to be expected.
The filters used on the body are used to filter a specific resource. It seems as the response does not follow the fields and will give you information about the resource.
You can also test this by using Developer tools and seeing the response and call to match the payload.
09-11-2023 08:57 PM
Hello Fran.Paris
If you want to filter your results, use the "filters" field as it is in the payload example below.
09-12-2023 12:23 AM
Hello OOmotayo,
Thanks for your answer.
I'm trying to use both filters:
- fields string[]
Array of specific fields to return
- filters object[]
Filtering parameters.
For filter names, refer to List Filters API.
For filter values, refer to List filter suggestions.
The only exception is resource.tagv2 filter name, provide filter value for it in the following format: "{"key":"'CustomerTagKey'","value":"'CustomerTagValue'"}"
filters is working as expected and I can get only the resources that I want. But, I want to limit the fields for each resource that I want to get, fields filters is not working
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!