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

Is it possible to access Organization-Scoped Artifact Feeds using the Azure Devops API?

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

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

这 returns 所有项目范围的提要,但不是组织范围的提要。我试过使用下面的 link 访问一个没有用,它总是告诉我提供的 ID 不存在。

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

所以我的问题是:是否有任何方法可以使用 DevOps API 从组织范围的提要访问 information/packages?

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

答案是肯定的。

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

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

我的测试结果: