Hey,
using the PRTG API with PHP I'd like to clone a master device and after that resume my new device.
As shown in the API reference I duplicate my master device:
http://yourserver/api/duplicateobject.htm?id=id_of_device_to_clone&name=new_name&host=new_hostname_or_ip&targetid=id_of_target_group&username=myusernam&passhash=mypasshash
As response I get the PRTG login page as html code. Same response running the request with the API platform Postman.
In order to resume my new device I need it's objectid:
http://yourserver/api/pause.htm?id=objectid&action=1&username=myusernam&passhash=mypasshash
Is there any way getting the objectid of my new device directly after duplicating it?
Or is there another way to go duplicating a device and resuming it?
PRTG Version: 22.1.75.1594+
Get objectid after duplicating a device in order to resume it
Votes:
0
2 Replies
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.
Add comment