Skip to main content

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

Metadata

Release files for python-zenoss-client 1.0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for python-zenoss-client 1.0.1
File Size Uploaded
python-zenoss-client-1.0.1.tar.gz 4.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for python-zenoss-client 1.0.1
File Interpreter ABI Platform
python_zenoss_client-1.0.1-py3-none-any.whl Python 3 none any Details

Total release size: 8.7 kB

Release files / python-zenoss-client-1.0.1.tar.gz

Download URL python-zenoss-client-1.0.1.tar.gz
Size 4.3 kB
Tags Source
SHA-256 checksum
How to use checksums
29c68c8d801aa7fce8d481a45d175001cf7b890f43a977ed335a446f2c77b3fc
BLAKE2b-256 checksum
How to use checksums
5616d2e89abb457bc908e8f2b60d612b510a81937b496b77c815a4a0c62f40d2
Upload date
Uploaded using Trusted Publishing?
What is 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

Release files / python_zenoss_client-1.0.1-py3-none-any.whl

Download URL python_zenoss_client-1.0.1-py3-none-any.whl
Size 4.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
d2242a83d5a586aa35aff5156ad12534644efd938b4e0d8de6a6a6ff2c26d6a9
BLAKE2b-256 checksum
How to use checksums
57781f814df955da10bd460d3ba45674c30f059eed557083d611a4ddfdd0ed8f
Upload date
Uploaded using Trusted Publishing?
What is 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

Release history Release notifications | RSS feed

This release

1.0.1 This release

2 release files

1.0.0

1 release file

0.0.4

1 release file

0.0.3

1 release file

0.0.2

1 release file

0.0.1

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page