Hi all,
I have the following question: is there any alternative way to properly import LCAs into the new solution Dataminer Package Project, other than using the Import Dataminer LCA... button in Visual Studio with a cloud-connected DMA?
I tried manually adding the .zip package using the same structure as the one imported through the button, but when I rebuild the solution it fails, reporting that the package is not valid.
I’m asking because the environment from which I need to import the LCA does not have cloud connectivity, nor is it expected to have it in the near future.
Hello,
Indeed, the packages have been secured against tampering which voids the ability to make your own.
You can use the Web API of DataMiner directly to ask DataMiner to make such a zip package (or install one).
These methods assume you are authenticated already on the WebAPI.
Create a package
Do a POST request on https://[dmaip]/API/v1/Internal.asmx/ExportApplication with the ID of the application. Optionally, a specific version can be specified (if 0, the latest public version will be used):
{
"connection": "[connectionID]",
"applicationID": "[applicationID]",
"options": {
"version": 0,
"isDraft": false
}
}
This will return a token which can be used to download the package: https://[dmaip]/API/v1/GetSecureFile.aspx?token=[token]
Install a package
This assumes the package is already located on the DMA. This can be done using the FileUpload methods of the WebAPI, or using other ways.
Do a POST request on https://[dmaip]/API/v1/Internal.asmx/ImportApplication
{
"connection": "[connectionID]",
"packagePath": "[filePathToPackage]",
"options": {}
}
This will install the low-code app, and will return the ID of the app, which can be used to open the URL of the app.