Export Xray configurations from On-prem Artifactory:

XRAY: How to transfer Xray configuration settings from On-prem Artifactory to a cloud Artifactory instance

AuthorFullName__c
Dinesh Kumar
articleNumber
000005650
ft:sourceType
Salesforce
FirstPublishedDate
2023-03-28T14:24:42Z
lastModifiedDate
2023-03-28
VersionNumber
1
First we need to run the Xray Export REST API on the On-prem Artifactory instance by mentioning the required configurations to be transferred in the input JSON file. Below I have exported all the configurations by providing “"export_all" : true” as input to the Xray Export REST API.
$curl -uadmin:${PASSWORD} -X POST https://On-prem-server/xray/api/v1/configuration/export -H 'Content-Type: application/json' -d '{"export_all" : true}'
It will generate an exported zip file under the below Xray path of the On-prem instance with all the configurations.
“/opt/jfrog/xray/var/work/server/backup/config/jfxr@0123abc_xray_exported_config_XXXX.zip”