IECTL publisher standalone-app app-config hinzufügen - Manual - Industrial Edge - Industrial Edge - Industrial Edge - Documentation of the Industrial Edge Platform - IEM - Hub - Industrial - Device - IED - Edge - IEH

Industrial Edge Platform Operation - APIs & Referenzen

Product
Industrial Edge
Product Version
v25.04
Edition
04/2025
Language
de-DE

Description

Fügen Sie die Konfiguration einer Anwendung hinzu.

Detaillierte Beschreibung

Die folgenden Konfigurationstypen werden unterstützt:

  • Unversioned

  • Versioned

  • Templated (angelehnt an schemabasierte Konfigurationen)

Jede Konfiguration wird in den Container gemountet. Der Mountpunkt im Container wird mit den Flags --hostpath und --subpath angegeben, wobei hostpath als Verzeichnis und subpath als Dateiname zum hostpath betrachtet werden. Hostpath und subpath werden dabei zu einem vollständigen Pfad zusammengeführt. Der subpath kann ausgelassen werden, dann wird automatisch der ursprüngliche Dateiname verwendet.

Beispiel:

--hostpath /my/data --subpath config.json

Dies ergibt den Mountpunkt /my/data/config.json im Container.

Der unversionierte Konfigurationstyp ist der voreingestellte Konfigurationstyp. Dieser Konfigurationstyp kann verändert werden und während der Bereitstellung der App sollte eine Datei hinzugefügt werden. Wird ein versionierter Konfigurationstyp mit Vorlagendetails, wie Name oder Beschreibung der Vorlage verwendet, wird dieser ignoriert.

Verwendung

iectl publisher standalone-app app-config add [OPTIONS]

Optionen

  -a, --appname string               name of the application for which configuration shall be added
  -d, --configdescription string     description of the configuration to display during deployment
  -n, --configname string            name of the configuration in lower case to display during deployment
  -f, --filepath string              path to the configuration file to be added [Optional]
  -h, --help                         help for standalone-app app-config add
  -p, --hostpath string              host path to be used as mount point within the container
  -j, --jsonschema                   enables the schema-based templated configuration [Optional]
  -x, --secure                       encrypts the configuration on IEM NOTE: configuration will not be encrypted during transmission / on IED [Optional]
  -s, --subpath string               sub path to be used as mount point within the container [Optional]
  -e, --templatedescription string   description for the templated configuration displayed during deployment [Optional]
  -t, --templatename string          name of the templated configuration displayed during deployment [Optional]
  -i, --versiondescription string    description for the versioned configuration displayed during deployment [Optional]
  -v, --versioned                    switches to configuration type versioned [Optional]
  -r, --versionname string           name of the versioned configuration displayed during deployment for selection [Optional]

Von übergeordneten Befehlen übernommene Optionen

  -o, --output string   output format
  -q, --query string    query on result of object
  -v, --verbose         verbose output

Beispiel

Unversionierte Konfiguration

iectl publisher standalone-app app-config add -a "myapp" -d "mydescription" -n "Config1" -p "./data/" -s "myfolder"

Versionierte Konfiguration

iectl publisher standalone-app app-config add -a "myapp" -d "mydescription" -n "Config1" "Mysql password" -p "./data/" -s "myfolder" -x -v -r "version1" -i "Version one of mysql configuration" -f "/home/config.txt"

Vorlagenbasierte ("Templated") Konfiguration

iectl publisher standalone-app app-config add -a "myapp" -d "mydescription" -n "Config1" "Mysql password" -p "./data/" -s "myfolder" -x -t "ConfigTemplate" -e "My Template Configuration" -f "/home/config.txt"

Vorlagenbasierte ("Templated") Konfiguration mit json-Schema

iectl publisher standalone-app app-config add -a "myapp" -d "mydescription" -n "Config1" "Mysql password" -p "./data/" -s "myfolder" -x -t "ConfigTemplate" -e "My Template Configuration" -j -f "/home/config.json"