Creating the bundle

ARTIFACTORY: How to generate and download an Artifactory Support Bundle with Rest API

AuthorFullName__c
Derek Pang
articleNumber
000006143
FirstPublishedDate
2024-07-11T05:43:24Z
lastModifiedDate
2025-05-21
VersionNumber
1
There will be two rest endpoints: the Create Bundle Rest endpoint and the Get Bundle Rest endpoint.

First, create the support bundle with the Create Bundle endpoint.
$ curl -uadmin -XPOST "<JFROG_URL>/artifactory/api/system/support/bundle" -H "Content-Type: application/json" -d '{"name": "Support Bundle Test", "description": "Testing support bundle generation", "parameters": { "configuration": "true", "system": "true", "collectSlowQueriesFromDatabase": "false", "logs": { "include": "true", "start_date": "2024-07-07", "end_date": "2024-07-09"}, "thread_dump": {"count": "2", "interval": "15000"} }}'

{
  "id" : "20240708-203816-917",
  "artifactory" : {
    "service_id" : "jfrt@01hzqseztgjhw40dxeka740k9d",
    "bundle_url" : "<JFROG_URL>/artifactory/jfrog-support-bundle/20240708-203816-917/jfrt/jfrt@01hzqseztgjhw40dxeka740k9d"
  }
}