Overview
In CDCM some customization data of a certain space can be transferred from one instance to another.
Customizations include:
Properties
Complex Properties
References
Master Data Tables
State Machines
Concept Types
Export
Exported customizations are represented in the JSON format. To export customization data from one instance of CDCM, please use one of the following methods:
Via User Interface
Navigate to Admin Area: Access the admin area of Smartfacts CDCM. (Cogwheel icon at the bottom left in the side menu)
Select Export & Import
Click on the Export Metadata button
A file will be downloaded via the browser
Via Endpoint
Perform a GET request on
/{spaceKey}/api/v1/deployment/customizations/export
Save the response as a JSON file
Import
Exported data sets of customization data can be imported to another instance. Each set of data is recognized by its key. If the instance already has values in it and a key with the same name already exists in that instance, its values will be updated to match the data from the export. Otherwise a new set of data will be created. If there is a key that is not included in the exported data set it remains unchanged.
In order to not cause any data integrity issues, we recommend to not import data from another version of CDCM. On import, the version will be checked and if does not match the version from the data source, a warning will be issued. This warning needs to be confirmed in order to actually execute the import process.
To import customization data from one instance of CDCM, please use one of the following methods:
Via User Interface
Navigate to Admin Area: Access the admin area of Smartfacts CDCM. (Cogwheel icon at the bottom left in the side menu)
Select Export & Import
Click on the Import Metadata button
Choose the file which contains the exported content
If Confirm possible version mismatch is checked, no additional confirmation of a possible version mismatch will be issued
Click on the button Import
Via Endpoint
Perform a POST request on
/{spaceKey}/api/v1/deployment/customizations/import
The following attribute can be set:
Parameter name | Data type | Required? |
confirmVersionMismatch | boolean | optional |
If set to true, the operation will be performed even if there is a version mismatch detected.
Also, there is the option to just determine how the outcome of the import (how many data sets will be updated and how many will be created) would look like.
For this, perform a POST request on /{spaceKey}/api/v1/deployment/customizations/import/impact
with the same parameter as above.
Add Comment