Hello Dorothea,
Regarding the auto-discovery settings, I'm afraid that is it necessary to execute a call for each A-D setting of an object, as indicated below:
/api/getobjectproperty.htm?id=SENSORID&name=discoverytype&username=PRTGUSER&passhash=PASSHASH
/api/getobjectproperty.htm?id=SENSORID&name=discoveryschedule&username=PRTGUSER&passhash=PASSHASH
You can easily get that information with the PowerShell module PRTGAPI, via the command:
Get-Device | Get-ObjectProperty | Select -property AutoDiscoveryMode, AutoDiscoverySchedule
In case the auto-discovery setting is defined to use a specific template (AutoDiscoveryMode = AutomaticTemplate), you can use this API call to get the template name:
/api/getobjectproperty.htm?id=SENSORID&name=devicetemplate&username=PRTGUSER&passhash=PASSHASH
If you have questions, let me know.
Regards.
Add comment