Azure DevOps REST API调用列表发行版不起作用。有什么建议吗?
我正在尝试通过使用Azure DevOps Rest API在Azure DevOps中使用所有释放的列表。该文档指出,获取发布的呼叫是:
https://dev.azure.com/(abryagy)/(project)/_apis/preasion/reparter/earseas/(ReleaseID)?api-version =(version)
和列出所有发行版的调用是:
(组织)/(project)/_ apis/repares/repares/releases?api-version =(version)
,但呼叫总是失败。 在ADO中,我有发布ID,但是发行的路径是管道/释放。我的意思是,要获取发行版列表,您必须进入管道下拉列表,点击发行版,选择管道,然后显示该管道的发行版列表。我对API不太熟悉,并且在使用PowerBi中使用这些呼叫来制作表之前,我正在使用Postman来测试这些URL调用。
是否有通话来访问这些版本的列表?我可以获取按管道运行的列表,但没有发行版列表。
I am attempting a list all releases for a pipeline in Azure DevOps by using the Azure DevOps REST API. The documentation states that the call to get a release is:
https://dev.azure.com/(organization)/(project)/_apis/release/releases/(releaseId)?api-version=(version)
and the call to list all releases is:
(organization)/(project)/_apis/release/releases?api-version=(version)
But the call always fails. In ADO, I have the release ID, but the path to the releases is pipelines/releases. By this I mean that to get to the list of releases, you must go to the pipeline dropdown, hit releases, select the pipeline, and then it shows the list of releases for that pipeline. I am not too familiar with API's and I am using postman to test these URL calls before using these calls in PowerBI to make a table.
Is there a call to get to the list of these releases? I can get a list of runs by pipeline but not a list of releases.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
正确的子域是
https://vsrm.dev.azure.com
因此只需将您的调用更改为:https://vsrm.dev.azure.com/(organization)/(project)/_apis/release/releases/(releaseId)?api-version=(version)
参考
The correct subdomain is
https://vsrm.dev.azure.com
so just change your call to this:https://vsrm.dev.azure.com/(organization)/(project)/_apis/release/releases/(releaseId)?api-version=(version)
Reference