gpt4 book ai didi

azure - 是否可以使用 Azure Devops API 访问组织范围的工件源?

转载 作者:行者123 更新时间:2023-12-02 23:16:23 25 4
gpt4 key购买 nike

我需要找到要与 Azure DevOps API 的 Artifact 资源一起使用的 Feed 的 ID。我目前使用此 URL 查看我的组织中的所有 Artifact feed。

https://feeds.dev.azure.com/{organization}/{project}/_apis/packaging/feeds?api-version=6.0-preview.1

这将返回所有项目范围的 Feed,但不返回组织范围的 Feed。我尝试使用下面的链接访问,但没有成功,它总是告诉我提供的 ID 不存在。

https://feeds.dev.azure.com/{organization}/{project}/_apis/packaging/feeds/{feedId}?api-version=6.0-preview.1

所以我的问题是:有没有办法使用 DevOps API 从组织范围的 Feed 访问信息/包?

最佳答案

Is there any way to access information/packages from an Organization-Scoped Feed using the DevOps API?

答案是肯定的。

您可以从 REST API URL 中删除{project}:

https://feeds.dev.azure.com/{organization}/_apis/packaging/feeds?api-version=6.0-preview.1

或者

https://feeds.dev.azure.com/{organization}/_apis/packaging/feeds/{feedId}?api-version=6.0-preview.1

我的测试结果:

enter image description here

关于azure - 是否可以使用 Azure Devops API 访问组织范围的工件源?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/64368123/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com