I would like to add devices to the PRTG via API using python script. Is it possible and how I can do this?
Add devices to the PRTG via API
Modified on 2025-06-10 15:11:35 +0200
Disclaimer:
The information in the Paessler Knowledge Base comes without warranty of any kind. Use at your own risk. Before applying any instructions please exercise proper system administrator housekeeping. You must make sure that a proper backup of all your data is available.
The information in the Paessler Knowledge Base comes without warranty of any kind. Use at your own risk. Before applying any instructions please exercise proper system administrator housekeeping. You must make sure that a proper backup of all your data is available.
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:
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