Warm tip: This article is reproduced from serverfault.com, please click

how to find artifacts from jfrog artifactory that have a specific property value using REST API

发布于 2020-11-29 08:49:14

I want to search for all the artifacts in my artifactory that have some property filed-

items.find({"@some_property" : {"$eq" : "some_value"}})

How can I do it while using REST API?

Questioner
yiaca
Viewed
11
user2851452 2020-11-29 21:16:04

Here is an example:

Following AQL query

items.find(
 {
 "repo":{"$eq":"mymavenrepo"},
 "name": {"$match" : "*.jar"}
 }
)

can be translated to this REST call

http://localhost/artifactory/api/search/artifact?name=*jar&re
pos=jcenter-cache