Skip to content

iectl config add iehub

Add new configuration for iehub.

User and password for iehub config you get by creating an API token in iehub portal for your account. Topbar, right side > Api Access Management > Grant Api Access After completing the prompt you see your api password for a limited time, make sure to save it.

iectl config add iehub [flags]

Options

  -h, --help              help for iehub
  -n, --name string       name of the configuration in lower case.
  -p, --password string   set password for login (Use character '\' before characters [\,"] in password)
                          when using symbols [!, $] in password use single quotes. e.g. -p 'password!@'
      --password-stdin    set password from stdin for login
      --url string        set url of IEHUB on which you want to perform operations. provide url without tenant name , e.g. : https://iehub.eu1.edge.siemens.cloud
  -u, --user string       set user for login

Options inherited from parent commands

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

Example

iectl config add iehub  --name "iehub_config" --user "email@siemens.com" --password "password" --url "https://iehub.eu1-dev.edge.siemens.cloud" 
cat ~/my_password.txt | iectl config add iehub  --name "iehub_config" --user "email@siemens.com" --url "https://iehub.eu1-dev.edge.siemens.cloud" --password-stdin

SEE ALSO