Uploaded image for project: 'Bamboo Data Center'
  1. Bamboo Data Center
  2. BAM-20007

No endpoint available for retrieving Linked Repository ID(s)

    • 0
    • 3
    • Our product teams collect and evaluate feedback from a number of different sources. To learn more about how we use customer feedback in the planning process, check out our new feature policy.

      Summary

      Currently there's no API endpoint for retrieving the linked repositories IDs.

      Environment

      All Bamboo versions

      Steps to Reproduce

      We offer the following endpoints related to linked repositories.

      /rest/api/latest/repository
      /rest/api/latest/repository/{repositoryId}/rssrepository/search [GET]
      /rest/api/latest/repository/testConnection [PUT]
      /rest/api/latest/repository/{repositoryId}/enableCi [PUT]
      /rest/api/latest/repository/{repositoryId}/enableAllProjectsAccess [PUT]
      /rest/api/latest/repository/{repositoryId}/enableAllRepositoriesAccess [PUT]
      /rest/api/latest/repository/{repositoryId}/rssrepository [POST, GET]
      /rest/api/latest/repository/{targetRepositoryId}/rssrepository/{repositoryId} [DELETE]
      /rest/api/latest/repository/{repositoryId}/scan/status [GET]
      /rest/api/latest/repository/scan [POST]
      /rest/api/latest/repository/{repositoryId}/scanNow [POST]
      

      Expected Results

      Need to add an endpoint to retrieve all repository ids

      Actual Results

      No endpoint to help retrieve the linked repository ids

      Workaround

      Currently you can get the repository ID by moving the mouse pointer over the name of the linked repository in the Bamboo UI. The information will be listed at the status bar of the browser.

            [BAM-20007] No endpoint available for retrieving Linked Repository ID(s)

            Hi @elias, thanks for heads up and sorry for the late feedback. Works like a charm!

            Müller, Stephan added a comment - Hi @elias, thanks for heads up and sorry for the late feedback. Works like a charm!

            Hi dfba70e31875!
            Looks like you can use the following endpoint (starting at Bamboo 6.10.2):

            /rest/api/latest/repository?searchTerm=

            Leaving searchTerm empty appears to work like a wildcard. You can then filter the output, using jq or a similar package, for the id.

            If you use curl, this could look like:

            curl -u<username> "<bamboo-url>/rest/api/latest/repository?searchTerm=" | jq '.searchResults.[].id'
            

            Ellie Z (they/them) added a comment - Hi dfba70e31875 ! Looks like you can use the following endpoint (starting at Bamboo 6.10.2): / rest /api/latest/repository?searchTerm= Leaving searchTerm empty appears to work like a wildcard. You can then filter the output, using jq or a similar package, for the id . If you use curl , this could look like: curl -u<username> "<bamboo-url>/rest/api/latest/repository?searchTerm=" | jq '.searchResults.[].id'

            Ahoi! This is closed as fixed, but I'm unable to identify the correct endpoint for latest Bamboo Rest API, to "retrieve all repository ids".

            What am I missing?

            Müller, Stephan added a comment - Ahoi! This is closed as fixed, but I'm unable to identify the correct endpoint for latest Bamboo Rest API, to "retrieve all repository ids". What am I missing?

              achystoprudov Alexey Chystoprudov
              roliveira@atlassian.com Ricardo
              Votes:
              6 Vote for this issue
              Watchers:
              10 Start watching this issue

                Created:
                Updated:
                Resolved: