You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am evaluating the OSS version of Nexus Repository Manager to determine its suitability for automating workflows. One requirement is the ability to search assets by their SHA256 digest. However, the /service/rest/v1/search/assets API returns an empty result when queried with a valid digest, even though the asset is visible in the response from /service/rest/v1/assets.
Do you have a workaround you are using at present?
I'm using /service/rest/repository/browse to manually locate the blob by iterating through all assets, but this is not scalable for automation
What feature or behavior is this required for?
I need to programmatically search blobs by their digest for automating workflows
Tell us about your Nexus Repository deployment: what version, operating system, and database are you using?
Nexus RepositoryOSS 3.75.1-01
Anything else?
Steps to reproduce this issue:
Verify Asset Exists: Query the /service/rest/v1/assets API to confirm the asset exists: GET /service/rest/v1/assets?repository=alpine
Search for the Asset by Digest: Query the /service/rest/v1/search/assets API with the asset's SHA256: GET /service/rest/v1/search/assets?repository=alpine&sha256=7ad00e65ee25911881c06b97a3e562675d255e1265ba4abadd3e906d266c1dcc
OR
GET /service/rest/v1/search/assets?repository=alpine&docker.contentDigest=sha256:7ad00e65ee25911881c06b97a3e562675d255e1265ba4abadd3e906d266c1dcc
returns:
{
"items": [],
"continuationToken": null
}
I am not sure if I am using the API incorrectly or if I should be using a different parameter to search. Any assistance would be appreciated. Thank you!
The text was updated successfully, but these errors were encountered:
What problem are you trying to solve?
I am evaluating the OSS version of Nexus Repository Manager to determine its suitability for automating workflows. One requirement is the ability to search assets by their SHA256 digest. However, the
/service/rest/v1/search/assets
API returns an empty result when queried with a valid digest, even though the asset is visible in the response from /service/rest/v1/assets
.Do you have a workaround you are using at present?
I'm using
/service/rest/repository/browse
to manually locate the blob by iterating through all assets, but this is not scalable for automationWhat feature or behavior is this required for?
I need to programmatically search blobs by their digest for automating workflows
Tell us about your Nexus Repository deployment: what version, operating system, and database are you using?
Nexus RepositoryOSS 3.75.1-01
Anything else?
Steps to reproduce this issue:
Verify Asset Exists: Query the
/service/rest/v1/assets
API to confirm the asset exists:GET /service/rest/v1/assets?repository=alpine
Json Response
Search for the Asset by Digest: Query the /service/rest/v1/search/assets API with the asset's SHA256:
GET /service/rest/v1/search/assets?repository=alpine&sha256=7ad00e65ee25911881c06b97a3e562675d255e1265ba4abadd3e906d266c1dcc
OR
GET /service/rest/v1/search/assets?repository=alpine&docker.contentDigest=sha256:7ad00e65ee25911881c06b97a3e562675d255e1265ba4abadd3e906d266c1dcc
returns:
I am not sure if I am using the API incorrectly or if I should be using a different parameter to search. Any assistance would be appreciated. Thank you!
The text was updated successfully, but these errors were encountered: