Import Xray configurations to Cloud 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
We need to copy the exported Zip file “jfxr@0123abc_xray_exported_config_XXXX.zip” with Xray configurations of On-prem to the same path of the cloud instance under
“/opt/jfrog/xray/var/work/server/backup/config/xray_exported_config_XXXX.zip”
As it was a cloud instance, customers won't be having access to the cloud servers to copy the exported Xray configurations file. So they will provide the generated xray exported configuration file for the On-prem Artifactory to us. Support will work with Production Engineering to place the exported file under the required xray path on the corresponding cloud Artifactory server.

Now we will provide the complete path of the exported zip file on the cloud Artifactory server and ask the customer to run the Xray Import REST API on their cloud Artifactory by providing the src_path of the exported file as below.
$ curl -uadmin:${PASSWORD} -X POST https://saas-server/xray/api/v1/configuration/import -H 'Content-Type: application/json' -d '{"src_path" : "xray_exported_config_XXXX.zip"}'

This will successfully transfer the Xray configuration settings from On-prem Artifactory to a cloud Artifactory instance.