Import a Managed Fusion App
To import an app, you can use either the Managed Fusion UI or the Objects API.
Import an app with the Managed Fusion UI
-
Sign in to Managed Fusion.
-
In the Add new app screen, click Import app.
-
Under Data File, click Choose File and select the zip file containing the app you want to import.
-
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" }
-
You can sometimes edit parameter values to use the new values in the imported app. If this is the case, Managed Fusion displays a dialog box that lets you edit the parameter values.
Make desired changes, and then click Import.
Import an app with the Objects API
Like any other Managed Fusion object, an exported app is contained in a zip file which Managed Fusion can consume upon import. The zip file does not need to be expanded first.
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
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.
|
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