Hello,
I'm trying to automate the monitoring of newly deployed devices.
Is there a way to select device template with API while creating the device ?
I can select the discovery type and schedule, but when it comes to checking device templates, I can't figure out witch argument and value to put in my url.
/api/adddevice.htm?name_=DEVICENAME&host_=IPADDRESS&ipversion_=0&discoverytype_=2&discoveryschedule_=0&id=GROUPID
<error>The validation of at least one of the new objects failed because of the following:<br/><ul><li>Device Template(s): Required field, not defined.</li></ul><br/>The object was not created.</error>
I also thought about creating a Auto discovery Groupe, then adding devices to it, but it requires me to define a range of ip addresses, a list of addresses ... I cant just let it wait for upcoming devices to apply the selected template to them.
Hope I have well explained my issue, and thanks in advance.
Add comment