TECHZEN Zenoss User Community ARCHIVE  

JSON API, deviceClass

Subject: JSON API, deviceClass
Author: [Not Specified]
Posted: 2014-11-19 00:24

Hi,
Is there any way that I can add a new deviceclass with the API

I thought that if I added a device to a non existing deviceClass it woult generate it, but thats not the case.

If i try that it will trow back:
ObjectNotFoundException: Cannot find "/zport/dmd/Devices/Network/Access/Cisco/WS-C3560-24TS". KeyError: \'Access\'', u'type': u'exception'

/Mathias

Mathias



Subject: http://community.zenoss.org
Author: Andrew Kirch
Posted: 2014-11-20 13:27

http://community.zenoss.org/community/documentation/official_documentati... has the 1.0 JSON api docs

Andrew Kirch

akirch@gvit.com

Need Zenoss support, consulting or custom development Look no further. Email or PM me!

Ready for Distributed Topology (collectors) for Zenoss 5 Coming May 1st from GoVanguard



Subject: Thanks but I have look
Author: [Not Specified]
Posted: 2014-11-24 01:31

Thanks but I have lookedthrough them not being able to find how the api handles the creation of new deviceClasses.
Can you point me to the right page

Mathias



Subject: You can do this with zenbatchload
Author: [Not Specified]
Posted: 2014-11-26 11:48

# zenbatchdump run on host zenosstest on date 2014-11-23 14:00:08.281556
# with --root=
# To load this Device dump file, use:
# zenbatchload

'/Devices/Davetest' zCollectorClientTimeout=600, zCollectorPlugins=[], zIfDescription=True, zSnmpCollectionInterval=600, zSnmpCommunities=['blerg'], zSnmpCommunity='blerg', zSnmpTimeout=600.0



< Previous
Cisco UCS
  Next
Updated Bug Closure Policy
>