PaloAltoNetworks / PaloAltoNetworks/pan.dev
PATH_TO_CONSOLE/api/v32.06/cloud/discovery/entities does not return results based on request payload
Nobody has claimed this yet.
- Dominant language
- MDX
- Stars
- 78
- Forks
- 88
- Avg merge
- 5d 17h
- Merged PRs (30d)
- 18
Description
Documentation link
https://pan.dev/prisma-cloud/api/cwpp/get-cloud-discovery-entities/
Describe the problem
Request for improvement: example, trying to retrieve all undefended azure-acr registries, I define the payload as below. However, this does not impact the response and all records for all service types are returned.
payload = {
"provided": ["azure"],
"serviceType": ["azure-acr"],
}
Hardcoding the url as below will return the requested information.
Suggested fix
Response should provide only the information that is passed in the payload in request.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the linked Cloud Discovery Entities documentation and reproduce the request using the shown payload for an Azure ACR registry query. Compare the payload behavior with the hardcoded query-string request, then determine whether the fix belongs in this documentation repository or the API; done means the documented request returns only the requested service type and defense status.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- azure
- Domain
- api, cloud
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100