zenossapi

apiclient Class

Zenoss API Client Class

class zenossapi.apiclient.Client(host=None, user=None, password=None, ssl_verify=None, collection_zone=None, api_key=None)[source]

Bases: object

Client class to access the Zenoss JSON API

get_router(router)[source]

Instantiates and returns a Zenoss router object

Parameters:

router (str) – The API router to use

get_router_methods(router)[source]

List all available methods for an API router

Parameters:

router (str) – The router to get methods from

Return type:

list

get_routers()[source]

Gets the list of availble Zenoss API routers

Return type:

list

exception zenossapi.apiclient.ZenossAPIClientAuthenticationError[source]

Bases: Exception

exception zenossapi.apiclient.ZenossAPIClientError[source]

Bases: Exception

zenossapi.apiclient.strtobool(_string)[source]

Converts a string to a boolean, replaces distutils.utils.strtobool (deprecated per PEP 632)