Skip to content

iectl iem device create

Create a new Edge Device

Synopsis

This method creates an edge device within the IEM with the given configuration. It returns a JSON string which can be used for onboarding an edge device.

iectl iem device create [flags]

Options

      --body string   The device details object
  -d, --data string   use this flag for passing data via json or as datafile with @filename
  -h, --help          help for create

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 device create --data '{\"device\":{\"onboarding\":{\"localUserName\":\"email@siemens.com\",\"localPassword\":\"password\",\"deviceName\":\"demodeviceDocus\",\"deviceTypeId\":\"core.ieipc\"},\"Device\":{\"Network\":{\"Interfaces\":[{\"MacAddress\":\"00:00:00:00:00:00\",\"GatewayInterface\":true,\"DHCP\":\"enabled\",\"Static\":{\"IPv4\":\"\",\"NetMask\":\"\",\"Gateway\":\"\"},\"DNSConfig\":{\"PrimaryDNS\":\"8.8.8.8\",\"SecondaryDNS\":\"8.8.8.9\"}}]}},\"ntpServers\":[{\"ntpServer\":\"time.google.com\",\"preferred\":true}],\"proxies\":[{\"host\":\"my-proxy.host\",\"protocol\":\"http\",\"user\":\"proxyuser\",\"password\":\"proxypassword\",\"noProxy\":\".siemens,.domain\",\"customPorts\":[666,8080]}]}}'

SEE ALSO