ZenPacks and JSON API

1.  Adding Locations to a ZenPack?

Posted 12 days ago
Just reaching out to see if anyone knows if I can add locations to a Zenpack?  Haven't found any info yet on if its possible and their is not an option in the GUI to do so.

I guess in the end I should just use some sort of zendmd script?

------------------------------
Andy Fleming
KanREN - Kansas Research and Education Network
KS
------------------------------


2.  RE: Adding Locations to a ZenPack?

Posted 10 days ago
You could add it during the install step.


dmd.Locations.createOrganizer('TestLoc')

You can use the Microsoft ZP as an example oh how to use zpl, __init__.py and install() to do things during install/removal.

zenoss/ZenPacks.zenoss.Microsoft.Windows
GitHub remove preview
zenoss/ZenPacks.zenoss.Microsoft.Windows
ZenPacks.zenoss.Microsoft.Windows - Microsoft Windows ZenPack
View this on GitHub >


------------------------------
jstanley
------------------------------