Get all organizations in Azure DevOps using REST API

后端 未结 5 1614
谎友^
谎友^ 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:26

    A REST API request/response pair can be separated into five components:

    The request URI, in the following form:

    VERB https://{instance}[/{team-project}]/_apis[/{area}]/{resource}?api-version={version}
    

    instance: The Azure DevOps Services organization or TFS server you're sending the request to.

    They are structured as follows: Azure DevOps Services: dev.azure.com/{organization}

    The REST API's are organization specific. This is not documented at present. You could submit a feature request here: https://developercommunity.visualstudio.com/spaces/21/index.html

    Our PM and product team will kindly review your suggestion. Sorry for any inconvenience.

    As a workaround, you could use the API which captured from network traffic just as Matt mentioned.

提交回复
热议问题