I’ve been trying to work out the API syntax to search for a docker image by its sha256 value but cannot get this working. So far I have been using the search/assets API with various options tried to key in on the image sha256 checksum
curl -u xxxx "https://xxxxxxxxxxxxxxxxxx:8081/nexus/service/rest/v1/search/assets?repository=&name=/<image_name>
I am able to search using the UI using the sha256 and noted that the URL included search=assets.attributes.checksum.sha256%3D but was unable to make this then work with the API
Any suggestions welcomed please