To execute an AQL query, use the Artifactory Query Language (AQL) REST API.
Artifactory Query Language (AQL)
Description: Flexible and high performance search using Artifactory Query Language.
Since: 3.5.0
Security: Requires an authenticated user. Certain domains/queries may require Admin access.
Usage: POST /artifactory/api/search/aql
Consumes: text/plain
Note
For information on limiting the maximum number of AQL search results, click here.
Sample Usage:
POST https://<JFrogPlatformURL>/artifactory/api/search/aql
items.find(
{
"repo":{"$eq":"libs-release-local"}
}
)Produces: application/json
Sample Output:
{
"results" : [
{
"repo" : "libs-release-local",
"path" : "org/jfrog/artifactory",
"name" : "artifactory.war",
"type" : "item type",
"size" : "75500000",
"created" : "2015-01-01T10:10;10",
"created_by" : "Jfrog",
"modified" : "2015-01-01T10:10;10",
"modified_by" : "Jfrog",
"updated" : "2015-01-01T10:10;10"
}
],
"range" : {
"start_pos" : 0,
"end_pos" : 1,
"total" : 1,
"limit": 5,
"notification": "AQL query reached the search hard limit, results are trimmed."
}
}