Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Next challenges

Recent achievements

  • Global
  • Personal

Recognition

  • Give kudos
  • Received
  • Given

Leaderboard

  • Global

Trophy case

Kudos (beta program)

Kudos logo

You've been invited into the Kudos (beta program) private group. Chat with others in the program, or give feedback to Atlassian.

View group

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

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 Cloud

Share your Confluence Cloud experience for a chance to win $500!

Take our 5-minute survey to win a $500 Visa gift card! Are you currently using Confluence Cloud? We want to hear from you! Fill out this quick survey about your Confluence Cloud experience so we ...

293 views 5 14
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