Operation app on IEM - Manual - Industrial Edge - Industrial Edge - Industrial Edge - Documentation of Industrial Edge APIs - CLI tools - Industrial Edge - References - APIs

Industrial Edge Platform Operation - APIs & References

Product
Industrial Edge
Edition
12/2024
Language
en-US (original)

The versionId can be optional when running an application on the IEM. If the application is a catalog application, there is no need to set the versionId. But if you want to install a developer application with a specific version, you need to set the versionId to install the according version. The operation type can be installApplication, updateApplication, uninstallApplication, startApplication, restartApplication, stopApplication, updateAppConfig, deleteAppConfig. Use the request:

curl -i -X POST \
-H "Authorization:<your-authorization-token>" \
'https://<your-iem-url>/portal/api/v1/batches?appid=<your-app-id>&operation=<your-operation-type>&versionId=<your-version-id>' \
--data-raw '{
  "infoMap ": {
      "devices":  [
        "string"
      ],
      "delayTime":integer,
      "configs": [
        {
          "configId": "string",
          "versionId": "string",
          "templateId": "string",
          "editedTemplateText": "string",
          "fileId": "string"
        }
      ]
  }
}'

A successful response looks like this:

{
  "data": "f1f9a2ddd44c4a4180ed9f3c1ae1d48b"
}