![]() |
![]() |
Subject: | Zenoss 5 JSON API |
Author: | [Not Specified] |
Posted: | 2017-03-10 17:10 |
Hi,
I'm trying to learn how to use the Zenoss 5 JSON API. So far I have created this in my test bash script:
cat test.sh
#!/bin/sh
source /home/utilities/zenoss/test/zenoss.sh
zenoss_api "I know there are supposed to be some arguments that need to go here but not sure which ones."
For example if I want to list all the devices from a specific group/system then what arguments would I put after zenoss_api?
Thanks
Mo
Subject: | Read up on the API |
Author: | Jay Stanley |
Posted: | 2017-03-12 17:39 |
Read up on the API
https://www.zenoss.com/services-support/documentation/zenoss-json-api
Here is the python way of doing it. Script provided by Zenoss
https://github.com/jstanley23/ZenossAPIExamples
https://support.zenoss.com/hc/en-us/articles/202384859-How-To-Create-And-Close-Events-Via-curl-With-The-JSON-API
http://wiki.zenoss.org/Working_with_the_JSON_API
Subject: | Working Just Fine. |
Author: | [Not Specified] |
Posted: | 2017-03-13 11:08 |
Whoops! *frown*
I was using the wrong password on my new instance!! My bad, and thanks for your support.
Subject: | Not this: |
Author: | Jay Stanley |
Posted: | 2017-03-16 09:51 |
Not this:
deviceClass='/zport/dmd/itinfrastructure#devices:.zport.dmd.Devices'
But this:
deviceClass='/zport/dmd/Devices'
If you want to use the URL as a guide, take the last part of it and replace '.' with '/'
< |
Previous network map |
Next root password |
> |