Skip to main content

Zenoss API client for python

None None

Project description

python-zenoss-client

PyPI version Build Status

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 None

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

python-zenoss-client-1.0.1.tar.gz (4.3 kB view hashes)

Uploaded Source

Built Distribution

python_zenoss_client-1.0.1-py3-none-any.whl (4.4 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page