Retrieve total storage usage and identify largest artifacts.
curl -u "username:password" -X GET "https://site.jfrog.io/artifactory/api/storageinfo"curl -u "username:password" -X POST "https://site.jfrog.io/artifactory/api/search/aql" -H "Content-Type: text/plain" --data '
items.find({"repo": "my-repo"}).sort({"$desc":["size"]}).limit(10)'
'curl -u "username:password" -X GET "https://site.jfrog.io/artifactory/api/storage/my-repo/path/to/artifact.jar?stats"curl -u "username:password" -X POST "https://site.jfrog.io/artifactory/api/search/aql" -H "Content-Type: text/plain" --data '
items.find({"repo": "my-repo"}).sort({"$desc":["stat.downloads"]}).limit(10)'
'curl -u "username:password" -X GET "https://site.jfrog.io/artifactory/api/access/api/v1/audit?limit=50"curl -u "username:password" -X POST "https://site.jfrog.io/artifactory/api/search/aql" -H "Content-Type: text/plain" --data '
items.find({"stat.downloads":{"$gt": 0}}).include("stat.downloads", "stat.downloaded_by").sort({"$desc":["stat.downloads"]}).limit(10)'
'curl -u "username:password" -X POST "https://site.jfrog.io/artifactory/api/search/aql" -H "Content-Type: text/plain" --data '
items.find({"repo": "my-repo", "created_by": {"$ne": ""}}).include("size", "created_by").sort({"$desc":["size"]}).limit(10)'
'curl -u "username:password" -X GET "https://site.jfrog.io/artifactory/api/repositories"For each repository, check download statistics:
curl -u "username:password" -X GET "https://site.jfrog.io/artifactory/api/storage/{repoKey}?stats"curl -u "username:password" -X POST "https://site.jfrog.io/artifactory/api/search/aql" -H "Content-Type: text/plain" --data '
items.find({"repo": "my-repo"}).include("size").sort({"$desc":["size"]}).limit(10)'
'curl -u "username:password" -X POST "https://site.jfrog.io/artifactory/api/search/aql" -H "Content-Type: text/plain" --data '
items.find().sort({"$desc":["size"]}).limit(10)'
' > largest_artifacts_report.jsoncurl -u "username:password" -X POST "https://site.jfrog.io/artifactory/api/search/aql" -H "Content-Type: text/plain" --data '
items.find().sort({"$desc":["stat.downloads"]}).limit(10)'
' > most_downloaded_artifacts.jsoncurl -u "username:password" -X GET "https://site.jfrog.io/artifactory/api/systemlogs?limit=100"| Goal | API Call |
|---|---|
| Get total storage usage | GET /artifactory/api/storageinfo |
| Find largest artifacts | AQL query sorting by size |
| Find most downloaded artifacts | AQL query sorting by downloads |
| Get artifact download statistics | GET /artifactory/api/storage/{repo}/{path}?stats |
| Get top users by egress | AQL query filtering downloads by user |
| Get top users by ingress | AQL query filtering uploads by user |
| Get top repositories by egress | GET /artifactory/api/storage/{repo}?stats |
| Get real-time access logs | GET /artifactory/api/access/api/v1/audit?limit=50 |
Would you like help automating these reports or integrating them with ClickHouse for analytics?