PaloAltoNetworks/prisma.pan.dev

Rest API /api/v21.08/registry not work with param layers=true

iyuhptop opened this issue · 2 comments

Describe the problem

I'm now trying to use Prisma Rest API:
api/v21.08/registry?layers=true&limit=1
What I expect is to get mappings between CVES and image layers but none.

 "history": [
            {
                "created": 1649118014,
                "instruction": "ADD file:0f80c1db9ba5535d5020662b1c880624848316637bf3f9c189f459ab31f365d0 in / ",
                "sizeBytes": 5613109,
                "id": "\u003cmissing\u003e",
                "emptyLayer": false,
               // following the rest api doc, here should be a param called vulnerabilities
            }
        ]

Suggested fix

I'm not sure if it's an api issue or my wrong usage

🎉 Thanks for opening your first issue here! Welcome to the community!

I also find that the rest api: /api/v21.08/images can get correct result