I am trying to create a python script to see when was last time my image was pulled from a container registry. I went through Registry API under API Reference and tried the following APIs to get information:
To list repo:
GET /v2/_catalog
To pull an image manifest:
GET /v2/<name>/manifests/<reference>
To pull a layer:
GET /v2/<name>/blobs/<digest>
After pulling the layer I can see a lot of information including history but not when was the last time image:tag was pulled.
How can I fetch when was the last time my image:tag was pulled?
Will be great if someone can help me with the APIs.
Thanks