Skip to content

mdsp oe-device-types Command

Syntax:

mdsp oe-device-types

Help:

mdsp oe-device-types --help

Alternative form:

mc oe-device-types

(The CLI was using mc as default command name in older versions)

Description

list, create or delete device types (open edge) *

Usage

Parameter list:

Usage: mdsp oe-device-types|oedt [options]

list, create or delete device types (open edge) *

Options:
 -m, --mode [list|create|delete|template|info] list | create | delete | template | info (default: "list")
 -f, --file .mdsp.json file with device type definition
 -t, --tenant tenant tenant of the device type definition
 -n, --devicetype the device type name
 -c, --code device type code
 -a, --assettype the device type associated asset type id
 -i, --id the device type id
 -o, --overwrite overwrite template file if it already exists
 -k, --passkey passkey
 -y, --retry retry attempts before giving up (default: "3")
 -v, --verbose verbose output
 -h, --help display help for command

Examples

Here are some examples of how to use the mdsp oe-device-types command:

 Examples:

 mdsp oe-device-types --mode list list all device types
 mdsp oe-device-types --mode list --tenant siemens list all device types which belongs to the tenant "siemens"
 mdsp oe-device-types --mode info --id get details of device type with the specified device id
 mdsp oe-device-types --mode template --devicetype board 
 create a template file for specified device type
 mdsp oe-device-types --mode create --file board.devicetype.mdsp.json 
 create device type board in Insights Hub
 mdsp oe-device-types --mode delete --id delete the device type with the device id

See Insights Hub API documentation for more information about Insights Hub APIs.