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

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

AuthorFullName__c
Andrew Roellig
articleNumber
000006160
ft:sourceType
Salesforce
FirstPublishedDate
2024-07-31T11:30:31Z
lastModifiedDate
2024-07-31
VersionNumber
1

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