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?
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
Thanks, but it seems the when I run it from bush, it get the
&
wrong, so it run the cmd until the&
in the background and failed to find the rest, instead of running it as one cmdTo use in bash, use double quotes around the URL
curl "http://localhost/artifactory/api/search/artifact?name=*jar&re pos=jcenter-cache"
It worked, Thanks!