prisma.pan.dev icon indicating copy to clipboard operation
prisma.pan.dev copied to clipboard

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

Open iyuhptop opened this issue 3 years ago • 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

iyuhptop avatar May 18 '22 05:05 iyuhptop

:tada: 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

iyuhptop avatar May 23 '22 01:05 iyuhptop