Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
jluevan13 opened this issue Jun 6, 2024 · 0 comments
Labels
documentation Improvements or additions to documentation

Comments

@jluevan13
Copy link

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.

@jluevan13 jluevan13 added the documentation Improvements or additions to documentation label Jun 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

No branches or pull requests

1 participant