您可以为此使用Artifactory 查询语言。例如:
curl -uadmin -XPOST http://localhost:8081/artifactory/api/search/aql -T test.json
Enter host password for user 'admin':
{
"results" : [ {
"repo" : "libs-release-local",
"path" : "a/a/1.0",
"name" : "a-1.0.jar",
"type" : "file",
"size" : 313,
"created" : "2020-02-09T11:13:23.266+02:00",
"created_by" : "admin",
"modified" : "2020-02-09T11:13:21.469+02:00",
"modified_by" : "admin",
"updated" : "2020-02-09T11:13:23.267+02:00"
} ],
"range" : {
"start_pos" : 0,
"end_pos" : 1,
"total" : 1
}
}
在 test.json 中,您可以找到我的 AQL:
$ 猫 test.json
items.find(
{
"name":{"$match":"*.jar"}
})