Adds a device to a configuration.
Output / Response
Returns the object ID of the new device.
API Call:
long addDevice( long configurationId, String
name, long deviceTypeId, long
deviceSubtypeId, String ip4Addresses,
String ip6Addresses, String properties
)
Parameter | Description |
---|---|
configurationId | The object ID of the configuration in which the device is to be located. |
name | The descriptive name of the device. |
deviceTypeId | The object ID of the device type with which the device is associated. The value can be 0 if you do not wish to associate a device type to the device you are adding. |
deviceSubtypeId | The object ID of the device sub-type with which the device is associated. The value can be 0 if you do not wish to associate a device sub-type to the device you are adding. |
ip4Addresses | One or more IPv4 addresses to which the device is assigned. Specify multiple addresses in a comma-delimited list. |
ip6Addresses | One or more IPv6 addresses to which the device is assigned. Specify multiple addresses in a comma-delimited list. |
properties | Adds object properties, including user-defined fields. |