Import Xray Configurations

Xray REST APIs

Products
JFrog Xray
Content Type
REST API
ft:sourceType
Paligo

Description: Imports user-defined configurations from the exported zip file.

Note

For Xray 2.x versions, you must specify the new Artifactory instance that the new Xray instance will work with.

Related Dependencies:

-Importing watches requires importing policies.

-Importing ignored rules requires importing watches.

API Version: v1

Security: Requires an admin user

Usage: POST /api/v1/configuration/import

Sample Usage:

POST /api/v1/configuration/import
{
    "src_path" : “” (default, directory or zip file path under /backup/config)
    "instance_id" : “” (default, the new instance id connected to Xray - not required in Xray 3.x)
}

Sample Response:

{
 "info": "Successfully imported config from path <directory or zip file path under /backup/config>"
}

Response Codes:

200: Success - settings imported.

400: Got an invalid request.

500: Failed to import configuration.