aql

[!TIP|label:references:]

syntax

DOMAIN
FIELD NAME
TYPE

item

repo

String

item

path

String

item

name

String

item

created

Date

item

modified

Date

item

updated

Date

item

created_by

String

item

modified_by

String

item

type

Enum

item

depth

Int

item

original_md5

String

item

actual_md5

String

item

original_sha1

String

item

actual_sha1

String

item

sha256

String

item

size

Long

item

virtual_repos

String

entry

name

String

entry

path

String

promotion

created

String

promotion

created_by

String

promotion

status

String

promotion

repo

String

promotion

comment

String

promotion

user

String

build

url

String

build

name

String

build

number

String

build

created

Date

build

created_by

String

build

modified

Date

build

modified_by

String

build

Started

Date

property

key

String

property

value

String

stat

downloaded

Date

stat

downloads

Int

stat

downloaded_by

String

stat

remote_downloads

Int

stat

remote_downloaded

Date

stat

remote_downloaded_by

String

stat

remote_origin

String

stat

remote_path

String

artifact

name

String

artifact

type

String

artifact

sha1

String

artifact

md5

String

module

name

String

dependency

name

String

dependency

scope

String

dependency

type

String

dependency

sha1

String

dependency

md5

String

release

name

String

release

version

String

release

status

String

release

created

String

release

signature

String

release_artifact

path

String

OPERATOR
TYPES

$ne

string, date, int, long

$eq

string, date, int, long

$gt

string, date, int, long

$gte

string, date, int, long

$lt

string, date, int, long

$lte

string, date, int, long

$match

string, date, int, long

$nmatch

string, date, int, long

ELEMENT
DESCRIPTION

Example

Find items whose "name" field equals "ant-1.9.4.jar"

Regular notation

items.find({"name":{"$eq":"ant-1.9.4.jar"}})

Short notation

items.find({"name":"ant-1.9.4.jar"})

  • example

[!NOTE|label:references:]

AQL supports specifying time intervals for queries using relative time. In other words, the time interval for the query will always be relative to the time that the query is run, so you don't have to change or formulate the time period, in some other way, each time the query is run. For example, you may want to run a query over the last day, or for the time period up to two weeks ago.

relative time is specified using the following two operators:

OPERATORS
PARAPHRASE

$before

The query is run over complete period up to specified time.

$last

The query is run over period from the specified time until the query is run

Time periods are specified with a number and one of the following suffixes:

TIME PERIOD
SUFFIXES

milliseconds

"mills", "ms"

seconds

"seconds", "s"

minutes

"minutes"

days

"days", "d"

weeks

"weeks", "w"

months

"months", "mo"

years

"years", "y"

find in files by name/pattern

[!NOTE|label:verbose]

  • RT_URL: https://artifactory.sample.com/artifactory

  • account: username

  • password: password or API token

same repo with curl -d

search in same repo with curl -T

in different repo

find items (folder) some times ago by aql

sort and limit

[!TIP|label:references:]

find most recent item

[!NOTE|label:references:]

find and pagination (sort and limit)

specify output fields

[!TIP|label:references:]

call aql via CURL

running via curl -d

-d, --data (HTTP MQTT) Sends the specified data in a POST request to the HTTP server, in the same way that a browser does when a user has filled in an HTML form and presses the submit button. This makes curl pass the data to the server using the content-type application/x-www-form-urlencoded. Compare to -F, --form.

running via curl -T

-T, --upload-file This transfers the specified local file to the remote URL. If there is no file part in the specified URL, curl will append the local file name. NOTE that you must use a trailing / on the last directory to really prove to Curl that there is no file name or curl will think that your last directory name is the remote file name to use. That will most likely cause the upload operation to fail. If this is used on an HTTP(S) server, the PUT command will be used.

Last updated

Was this helpful?