PaloAltoNetworks / PaloAltoNetworks/pan.dev

PATH_TO_CONSOLE/api/v32.06/cloud/discovery/entities does not return results based on request payload

Open
#690 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

documentation
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.

"https://app0.cloud.twistlock.com/app0-xxxxxxxx/api/v32.06/cloud/discovery/entities?serviceType=azure-acr&defended=false"

Suggested fix

Response should provide only the information that is passed in the payload in request.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.