Product Selector

Fusion 5.12
    Fusion 5.12

    Import a Fusion App

    To import an app, you can use either the Fusion UI or the Objects API.

    Import an app with the Fusion UI

    How to import an app with the Fusion UI
    1. Navigate to the launcher.

    2. Click Import app.

      Import app

    3. Under Data File, click Choose File and select the zip file containing the app you want to import.

    4. If your app has usernames and passwords in a separate file, select it under Variables File.

      If the Variables File is needed, it must be a separate file that is not in a .zip file. It is a .json map of variables to values. The following is an example:

    {
     "secret.dataSources.Inventory_BR_S3_DS.password":"SOMETHING",
     "secret.dataSources.LLM_A_BR_S3_DS.password":"FmJSaDE9Tj5REDACTED",
     "secret.dataSources.LLM_BR_Inventory_S3_DS.password":"FmJSaDE9Tj5GzIVvethAC4Huh",
     "secret.dataSources.LLM_BR_Load_S3_DS.password":"FmJSaDE9Tj5GzIVvethAC4"
    }
    1. You can sometimes edit parameter values to use the new values in the imported app. If this is the case, Fusion displays a dialog box that lets you edit the parameter values.

      Edit parameter values

      Make desired changes, and then click Import.

    Import an app with the Objects API

    Like any other Fusion object, an exported app is contained in a zip file which Fusion can consume upon import. The zip file does not need to be expanded first.

    Import objects from a file and stop if there are conflicts
    curl -u USERNAME:PASSWORD -H "Content-Type:multipart/form-data" -X POST -F 'importData=@/Users/admin/Fusion/export.zip' http://localhost:6764/api/objects/import?importPolicy=abort
    Import objects, substitute the password variables, and merge any conflicts
    curl -u USERNAME:PASSWORD -H "Content-Type:multipart/form-data" -X POST -F 'importData=@/Users/admin/Fusion/export.zip' -F 'variableValues=@password_file.json' http://localhost:6764/api/objects/import?importPolicy=merge
    password_file.json must contain plaintext passwords.
    Import a zip file of Fusion objects and merge any conflicts
    curl -u USERNAME:PASSWORD -H "Content-Type:multipart/form-data" -X POST -F 'importData=@/Users/admin/Fusion/techpubs.zip' http://localhost:6764/api/objects/import?importPolicy=merge