通过文物API获取两种包装类型的所有存储库
我正在尝试获取两种软件包类型的所有存储库(Maven和Terraform)。我正在尝试使用的URL是:
curl -u username:password -X GET "https://artifactory.es/artifactory/api/repositories?packageType=docker,helm"
但是我只收到第一个包装的包装,在这种情况下,Docker软件包。
I'm trying to get all repositories of two package types (Maven and Terraform). The URL I'm trying is:
curl -u username:password -X GET "https://artifactory.es/artifactory/api/repositories?packageType=docker,helm"
But I'm getting only the packages of the first one, in this case Docker packages.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
如官方文档中所述(),您一次只能获得一种回购类型。虽然这将是一个不错的补充。
您可以使用
JQ
之类的工具,并简单地从所有存储库的完整列表中操纵数据。这将使您仅使用 docker 或 helm 存储库。
As described in the official docs (The GetRepositories API), you can only get one repo type at a time. Although this would be a nice addition.
You can use a tool like
jq
and simply manipulate data from a full list of all repositories.This will leave you with the Docker or Helm repositories only.