ARTIFACTORY: Why the APIs to get Release bundles can come back empty

AuthorFullName__c
Andrew Roellig
articleNumber
000006160
FirstPublishedDate
2024-07-31T11:30:31Z
lastModifiedDate
2025-05-21

ARTIFACTORY: Why the APIs to get Release bundles can come back empty

When using the rest APIs to get all bundles. You may come across a situation where they come back empty.

API Call '<jfrogurl>/artifactory/api/release/bundles' returns empty object '{"bundles" : { }}'
API Call '<jfrogurl>/artifactory/api/release/bundles/<RB_Name>' returns empty list '{"versions" : [ ]}'


This is because these APIs query for bundles are querying for bundles with the property type=Target and if you run these APIs on the source instance the property will be type=Source. Therefore these APIs will not work on a source instance

Resolution 

To get around this you can use the v2 APIs or use AQL queries against the release bundle repository:

curl -u <username> -X POST "<jfrogurl>/artifactory/api/search/aql" -H "Content-Type: text/plain" -d '
items.find({
    "$or": [
    {"repo": "<release bundle repository>"},
    {"repo": "<release bundle repository>"}
  ]
}).include("name")'