Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,297,671
Community Members
 
Community Events
165
Community Groups

How to start all the stopped repos in fisheye ?

I have more than 5000 repos showing stopped in my fisheye instance and i want to start all of them at once. Manually starting every single repo is impossible.

Please suggest a way to start all of them. 

Regards,

Anurag Sharma

+91-8826185008

1 answer

1 accepted

1 vote
Answer accepted

Hi Anurag,

You should be able to use the Fisheye REST API to do this programmatically.

Here's the specific endpoint you can use: https://docs.atlassian.com/fisheye-crucible/latest/wadl/fecru.html#rest-service-fecru:admin:repositories:repository:start

Since there are so may repos, you might also want to use the following REST API endpoint to get a list of the repos: https://docs.atlassian.com/fisheye-crucible/latest/wadl/fecru.html#rest-service-fecru:admin:repositories

In the event that you'd like to know if the repo is running prior to attempting to start it, you can use this REST API endpoint to get the status of the repo: https://docs.atlassian.com/fisheye-crucible/latest/wadl/fecru.html#rest-service-fecru:admin:repositories-v1:repository

Here are examples of the REST calls you'll make in each scenario if you were to use cURL:

Start a repo

curl -vkS -u <fisheye_admin> -H "Content-Type: application/json" -X PUT "<base_URL>/rest-service-fecru/admin/repositories/{repository}/start"

Get a paged list of repos

curl -vkS -u <fisheye_admin> -H "Content-Type: application/json" -X GET "<base_URL>/rest-service-fecru/admin/repositories"

Get the status of a repo

curl -vkS -u <fisheye_admin> -H "Content-Type: application/json" -X GET "<base_URL>/rest-service-fecru/admin/repositories-v1/{repository}"

With respect to the examples listed above:
* Be sure to change <fisheye_admin> to the username of your fisheye user with admin privileges
* Be sure to change <base_URL> to the base URL of your Fisheye instance
* Be sure to change {repository} to the actual repo's name

The implementation of the full code you will use will depend on the language you choose to write it in. However, let us know if you have any issues making the REST API calls themselves and we'll help point you in the right direction.

I hope this information is helpful!

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published in Confluence

An update on Confluence Cloud customer feedback – June 2022

Hi everyone, We’re always looking at how to improve Confluence and customer feedback plays an important role in making sure we're investing in the areas that will bring the most value to the most c...

81 views 0 0
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you