PaloAltoNetworks / PaloAltoNetworks/pan.dev

Issue/Help with "Get Image Scan Results"

Open
#593 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

Describe the problem

Hello, I am currently using the PrismaCloud API. I am using three entry-points: hosts, images and registry. On those calls, I am using a filter on the collection, as "collections": "All". However, I see a different behaviour on hosts and images.

On the host case, when fetching with a collection filter on All, the api returns me all the assets that match the filter and enumerate for each asset, all the collection associated. As an example, for a given asset, I will have a list of collection as: "collections": [ "All", "resource_1"].

However, I suspect a different behaviour on the image entry-point. Indeed, I apply again a filter on the collection, here All, but instead of having the list of all the collection, for a given asset, I will only have the filtering one, here All. So if I have an asset, with multiple collection associated, in the returned data of the API, I will only have "collections": ["All"].

Suggested fix

I would like to know if it is the expected behaviour of the API, or is it possible to have for a given asset, all the associated collections. Thanks for your help.

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 Get Image Scan Results documentation and compare the hosts, images, and registry entry points described in the issue, focusing on collection filtering and returned collection lists. Done would be a confirmed explanation of the expected image behavior and corresponding documentation clarification, if needed.

Written by the indexing model from the issue text.

Assessment

Domain
api, documentation
Issue type
Documentation
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.