Home > Blockchain >  How to list all repositories (cross organization) using Azure DevOps API
How to list all repositories (cross organization) using Azure DevOps API

Time:08-05

Is there a way to list every repository from an ADO instance using the API? I see it is possible to list the repository of a specific Project but that would result in many API calls (1 per project for each organization). Is there a more efficient way to do this?

CodePudding user response:

There is no other way. What you can do to improve is call first for projects

GET https://dev.azure.com/{organization}/_apis/projects?api-version=6.0

and use response to iterate and get all repositories.

  • Related