curlartifactoryartifactory-query-lang

list all builds(artifacts) in a repo on jfrog-artifactory using AQL(artifactory query language)


When ever I run the curl command it's throwing a syntax error. I've followed this documentation to list all artifacts in 'war-release' repo. No idea what's the issue.

$curl -u uname:password -X POST https://<artifactory.com>/artifactory/api/search/aql -d items.find({"repo":"war-release"})

-bash: syntax error near unexpected token `('


Solution

  • Try this curl statement:

    curl -u uname:password -X POST -d "items.find({"repo":"war-release"})" https:///artifactory/api/search/aql