Azure DevOps REST API调用列表发行版不起作用。有什么建议吗?

发布于 2025-01-17 19:17:23 字数 541 浏览 4 评论 0原文

我正在尝试通过使用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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

嘴硬脾气大 2025-01-24 19:17:24

正确的子域是 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

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文