Skip to main content

Zenoss API client for python

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


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 details)

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

Details for the file python-zenoss-client-1.0.1.tar.gz.

File metadata

  • Download URL: python-zenoss-client-1.0.1.tar.gz
  • Upload date:
  • Size: 4.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.20.0 setuptools/40.4.3 requests-toolbelt/0.8.0 tqdm/4.27.0 CPython/3.5.3

File hashes

Hashes for python-zenoss-client-1.0.1.tar.gz
Algorithm Hash digest
SHA256 29c68c8d801aa7fce8d481a45d175001cf7b890f43a977ed335a446f2c77b3fc
MD5 812ddcdf5a5bc2f27b8a8d4b305165b3
BLAKE2b-256 5616d2e89abb457bc908e8f2b60d612b510a81937b496b77c815a4a0c62f40d2

See more details on using hashes here.

File details

Details for the file python_zenoss_client-1.0.1-py3-none-any.whl.

File metadata

  • Download URL: python_zenoss_client-1.0.1-py3-none-any.whl
  • Upload date:
  • Size: 4.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.20.0 setuptools/40.4.3 requests-toolbelt/0.8.0 tqdm/4.27.0 CPython/3.5.3

File hashes

Hashes for python_zenoss_client-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 d2242a83d5a586aa35aff5156ad12534644efd938b4e0d8de6a6a6ff2c26d6a9
MD5 155a7286d1941228f8449448582f7d69
BLAKE2b-256 57781f814df955da10bd460d3ba45674c30f059eed557083d611a4ddfdd0ed8f

See more details on using hashes here.

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