Skip to content
This repository has been archived by the owner on Apr 19, 2023. It is now read-only.

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

Open
iyuhptop opened this issue May 18, 2022 · 2 comments
Open

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

iyuhptop opened this issue May 18, 2022 · 2 comments

Comments

@iyuhptop
Copy link

iyuhptop commented May 18, 2022

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

@welcome-to-palo-alto-networks

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

@iyuhptop iyuhptop changed the title Rest API /api/v21.04/registry not work with param layers=true Rest API /api/v21.08/registry not work with param layers=true May 18, 2022
@iyuhptop
Copy link
Author

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant