- Access exclusive content
- Connect with peers
- Share your expertise
- Find support resources
01-17-2024 10:31 AM - edited 01-17-2024 11:45 AM
Hello,
I'm trying to export information for all resource.
"/resource/scan_info"
or
"/v2/resource/scan_info"
do you know how I can recover --> resourceConfigJson
I can't manage to retrieve tag information from azure for example and prisma web in the api.
it takes a long time to retrieve all the information - is there a way to generate a csv like with alerts?
01-17-2024 12:11 PM
Hi PCouedel,
Allow me to share some pertinent information about gathering asset information.
If you are interested in retrieving lots of objects , the best choice is to use the Investigate page where you can retrieve objects based on tags and other properties or metatdata.
My team has recently published an article about gathering large amounts of data using scripting and API calls.
You would use the Investigate page to validate some of your search results on a smaller scale. Then you can follow the implementation of the script to gather results greater than 100k.
Please let me know how this works out.
Regards,
Brandon
01-17-2024 01:03 PM - edited 01-17-2024 01:04 PM
Hello,
Its replacement , also mentioned at the above URL is Get Asset (See https://pan.dev/prisma-cloud/api/cspm/get-asset-details-by-id/)
thank you for your solution, but how can I retrieve the unifiedAssetId for all the assets?
01-18-2024 09:39 AM
Hi,
The mentioned API call is only used to query and respond with detail about a single resource. It is not meant to be used for returning large volumes of data.
In your original request you asked about finding tags on Azure resources. An example RQL you could start with on the investigate page is:
config from cloud.resource where cloud.type = 'azure' AND tag ( 'string' ) exists
If you are looking for information about tags, from a long list of resources, you don't need asset IDs.
Last, I'd like to recommend signing up for a free RQL training webinar where you'll be able to interact and ask questions live. Please have a look at this link and register for one that works for you:
https://paloaltonetworks.zoom.us/webinar/register/WN_biM82jcmTiGuQxp5NmOQ7w#/registration
Regards,
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!