Hello We plan to batch populate many sites from Group Templates
I am using Powershell to clone a template in which the location is inherited from above then I go through every cloned object to set several properties
In the top cloned group I set the location: Set-PRTGDeviceAttribute $NewGroup.Id location $StringAddressWithSeveralLines The function calls /api/setobjectproperty.htm?id=$deviceID&name=$attribute&value=$value$authenticate
This works (i.e. the address is present in the location field)
Then I disable inheritance Set-PRTGDeviceAttribute $NewGroup.Id location_ 0 It calls the same function: /api/setobjectproperty.htm?id=$deviceID&name=$attribute&value=$value$authenticate
name is location_ and value is 0 (according to the documentation)
This does not work
I tried to disable inheritance first then set the address, tried to use 1 instead 0 after disabling inheritance from the GUI
Nothing works Could you please help?
I have thought of a last option: disable inheritance with an empty address in the template but this would be a bad option as the template may be used for other usages, where inheritance must be enabled
Thank you upfront
Add comment