I would like to add devices to the PRTG via API using python script. Is it possible and how I can do this?


Article Comments

Hello,

Thank you for your message.

Regarding what you would like to achieve, I'm afraid that it's not possible to create objects via the API of PRTG. However, you have the possibility to clone a device and change its address after.

Here is the documentation regarding the duplication of objects: https://www.paessler.com/manuals/prtg/object_manipulation#supported_objects_duplicate.

You can use the following API call to modify the IP address/DNS name of the device:

/api/setobjectproperty.htm?id=DeviceID&name=host&value=new_value&username=PRTGuser&passhash=Passhash

You will find the manual here: https://www.paessler.com/manuals/prtg/object_manipulation#object_settings.

If you have questions, let us know.

Regards.


Feb, 2021 - Permalink