Zenoss API client for python
Project description
python-zenoss-client
Zenoss API client for python
Installation
pip install python-zenoss-client
Usage
- Connect
from zenoss_client import ZenossClient
api = ZenossClient(host="localhost", user="zenuser", passwd="*****")
- API call: The long way
endpoint = api.endpoint('device_router')
action = endpoint.action('DeviceRouter')
method = action.method('getDevices')
method(params={'name': 'testdevice'})
- API call: The sorter way
api.endpoint('device_router').action('DeviceRouter').method('getDevices')(params={'name': 'testdevice'})
- API call: The sortest way
api.device_router.DeviceRouter.getDevices(params={'name': 'testdevice'})
- With timeout
api.device_router.DeviceRouter.getDevices(params={'name': 'testdevice'}, timeout=10)
Documentation
This module is inspired by json_api.sh SHELL script published on zenoss official wiki
For full documentation of zenoss API, kindly refer to the link below:
zenoss official documentation
- Conventional naming of routers
Products.Zuul.routers.device -> device_router
Products.Zuul.routers.users -> users_router
Products.Zuul.routers.triggers -> triggers_router
Project details
None NoneDownload files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for python-zenoss-client-1.0.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 29c68c8d801aa7fce8d481a45d175001cf7b890f43a977ed335a446f2c77b3fc |
|
MD5 | 812ddcdf5a5bc2f27b8a8d4b305165b3 |
|
BLAKE2b-256 | 5616d2e89abb457bc908e8f2b60d612b510a81937b496b77c815a4a0c62f40d2 |
Close
Hashes for python_zenoss_client-1.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d2242a83d5a586aa35aff5156ad12534644efd938b4e0d8de6a6a6ff2c26d6a9 |
|
MD5 | 155a7286d1941228f8449448582f7d69 |
|
BLAKE2b-256 | 57781f814df955da10bd460d3ba45674c30f059eed557083d611a4ddfdd0ed8f |