Nexus search API

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

Looks like only the bottom-level field is required, so the request would be curl -u usr:'psw' -X GET 'https://blah.nexus.com/service/rest/v1/search?sha256=blahblahblah'.

I’ve raised a request to make the /search API doc. more explicit regarding that.

Thanks Daniel - that works nicely.