Skip to content

iectl iem-v2 job batch-create

Execute commands on app

Synopsis

This method executes commands (installApplication, updateApplication, uninstallApplication, startApplication, restartApplication, stopApplication, updateAppConfig, deleteAppConfig) on an application in IEM. If installing a catalog application, the optional param named versionId is not required. If installing a develop application, the versionId should be detailed.

iectl iem-v2 job batch-create [flags]

Options

      --appid string        The unique application ID.
  -d, --data string         use this flag for passing data via json or as datafile with @filename
      --files string        The files to send when use file-based configuration
  -h, --help                help for batch-create
      --infoMap string      The unique Edge Device ID, delayTime(optional value ranging between 1-60 in minutes which 
                            represents delay interval between jobs of a batch) and other info regarding config, 
                            resources etc

                            Valid combinations:
                            - version config: {"configs":[{"configId":"configid","versionId":"versionid"}]}
                            - pre-defined template-based config: e.g. deploying or changing a template configuration: 
                              {"configId":"configid","templateId":"templateId"}
                            - template config: {"configId":"configid","templateId":"templateId",
                              "editedTemplateText":"editedText"}
                            - file-based configuration: {"configId":"configid","fileId":"unique id"} where fileId 
                              is the unique upload id of the file

                            Example value:
                            {
                              "devices": ["device-id"],
                              "delayTime": delay-time,
                              "configs": [
                                {
                                  "configId": "first-config-id",
                                  "templateId": "first-template-id"
                                },
                                {
                                  "configId": "second-config-id",
                                  "templateId": "second-template-id",
                                  "editedTemplateText": "edited-template-text"
                                },
                                {
                                  "configId": "third-config-id",
                                  "versionId": "config-version-id"
                                },
                                {
                                  "configId": "fourth-config-id",
                                  "fileId": "unique-file-id"
                                }
                              ]
                            }
      --operation string    The operation to perform (install, uninstall, or update)

                            Valid operations: installApplication, updateApplication, uninstallApplication, 
                            startApplication, restartApplication, stopApplication, updateAppConfig, deleteAppConfig
      --schedule string     The time in ticks from now to the date you want to trigger the job.
      --versionId string    The specific version id for developer application.

Options inherited from parent commands

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

Example

$ iectl iem-v2 job batch-create --appid sampleAppId --operation updateApplication --versionId sampleVersionId --infoMap '{"devices":["sampleDeviceId1","sampleDeviceId2"],"delayTime":5}'

SEE ALSO