When using multiple instance of XLD, I would really like to have an option to export/import dictionary keys/values... Looks like this is not possible today.

Comments

  • Thank you for the idea. Could you please confirm what you would like to export and import:
    - only the dictionary entries, or
    - the full dictionary CI (udm.Dictionary / udm.EncryptedDictionary)?

    - Also do you use the encrypted values in dictionaries?

    If only dictionary entries are exported, they would need to be imported into an existing dictionary on the target instance, rather than creating a new CI.

  • Export and import capabilities are available via XL CLI.

    This command exports a dictionary from the specified Deploy instance:

    xl generate xl-deploy -p Environments/serversMap -f dictionary.yaml -o --xl-deploy-url http://localhost:4516/ --xl-deploy-username <username> --xl-deploy-password <password> --secrets

    --xl-deploy-url points to the instance from which the dictionary is exported.
    -p Environments/serversMap path can refer to either a udm.Dictionary or a udm.EncryptedDictionary CI.
    --secrets option generates a secrets.xlvals file that contains a mapping of encrypted values, allowing those values to be preserved during import.


    This command imports the dictionary into the target Deploy instance:

    xl apply xl-deploy -f dictionary.yaml --xl-deploy-url http://localhost:4516/ --xl-deploy-username <username> --xl-deploy-password <password>

    --xl-deploy-url specifies the target instance where the dictionary is created or updated.
    secrets.xlvals file must be present in the same directory when running this command so that encrypted values are imported correctly.

    Please let us know if this option would work for your usecase.