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.


Article Comments

Hi there,

Please note that we don't provide customization support and therefore we cannot provide help by coding. However, I checked the parameter transferred if you save a auto discovery with a certain template via the browser developer tools and noticed this parameter:

devicetemplate__check: Dell_EqualLogic.odt|Dell EqualLogic||

It seems like that the file name and the id of the device template is entered here.


Jul, 2020 - Permalink