Exporting and importing an application data
You can export and download your application data and import it into a new Concert instance to migrate or replicate an environment. The
output of the export will be a .tar file and the output is stored in LZ bucket. The
data is then reassessed when imported back into a Concert instance. You can export the application SBOM, Build
SBOM, Deploy SBOM, and Package SBOM.
- Who needs to complete this task?
- User with Admin access to the Concert instance.
Instructions: Exporting an application definition using Concert API
You can export a single or multiple application definition by specifying its name in the URL path.
- Use the following commands to export single or multiple application definition
data:
curl -vvv '<concert_domain>/core/api/v1/export/applications?names=<app-name1,app-name2>' \ -H 'accept: application/json' \ -H 'InstanceId: <instance_id>' \ -H 'Authorization: Bearer <token>' \ -d '' -kNote: Record thetoc_idincluded in the response. You need this to download the exported file. - Download the exported
.tarfile:curl '<concert_domain>/core/api/v1/export/job/<toc_id>/download' \ -H 'accept: application/json' \ -H 'InstanceId: <InstanceId>' \ -H 'Authorization: Bearer <token>' -k -O -J -LNote: The output of the exported application data will be a.tarfile. The output file is stored in the LZ bucket.
Instructions: Importing application data using Concert API
Refer to the following command to import a file containing your application definition data to a new Concert instance.
curl -k -X POST 'https://<concert-domain>/ingestion/api/v1/import_files' \
-H 'Authorization: Bearer <token>' \
-H 'Content-Type: multipart/form-data' \
-H 'InstanceId: <InstanceId>' \
-F 'file=@<filepath>'
Instructions: Exporting an application definition using Concert UI
Refer the following instructions to export application definition data to your workstation.
- Select .
- Choose Definitions from the sub navigation and click to enable the check box(es) next to the relevant application definition(s).
- Click Export.
- Click View event status or select to view the exported file.
- From the overflow menu against the exported file, choose
Download.Note: The output of the exported application data will be a
.tarfile.
Instructions: Importing an application definition using Concert UI
Refer the following instructions to import application definition data from your workstation to a new Concert instance.
- Select .
- Click .
- Upload the relevant exported
.tarfile from the workstation. - Click Upload.
Refresh the Applications page to view the imported file.