Get all organizations in Azure DevOps using REST API

后端 未结 5 1615
谎友^
谎友^ 2020-12-19 03:39

I am trying to retrieve all the organizations in my account but in the documentation an organization is always required in the API call.

https://dev.azure.co         


        
5条回答
  •  别那么骄傲
    2020-12-19 04:12

    We've been using "https://app.vssps.visualstudio.com/_apis/accounts" without specifying any API version and this returns all our accountnames

    This is still working for us, but because of some other issues we have I'm adding the api version to all our api calls, however. For this I also run into the fact that https://docs.microsoft.com/en-us/rest/api/azure/devops/account/accounts/list?view=azure-devops-rest-5.0 requires an member or owner id.

    Retrieving that needs an account/organization so it is a bit of a catch 22 situation.

    For now I'll stay with just "https://app.vssps.visualstudio.com/_apis/accounts" I guess

提交回复
热议问题