Skip to content
Browse files

Add proxy API

  • Loading branch information...
1 parent 6b6ddfd commit 195184aed9fc562f506a6b8344fe32b8f6824d70 @rday rday committed Aug 23, 2011
Showing with 7 additions and 0 deletions.
  1. +7 −0 zabbix/zabbix_api.py
View
7 zabbix/zabbix_api.py
@@ -136,6 +136,7 @@ def __init__(self, server='http://localhost/zabbix', user=None, passwd=None, log
self.drule = ZabbixAPIDRule(self,**kwargs)
self.history = ZabbixAPIHistory(self,**kwargs)
self.maintenance = ZabbixAPIMaintenance(self,**kwargs)
+ self.proxy = ZabbixAPIProxy(self,**kwargs)
self.id = 0
self.debug(logging.INFO, "url: "+ self.url)
@@ -2994,6 +2995,12 @@ def get(self,**opts):
def delete(self,**opts):
return opts
+class ZabbixAPIProxy(ZabbixAPISubClass):
+ @dojson('proxy.get')
+ @checkauth
+ def get(self,**opts):
+ return opts
+
class ZabbixAPIMaintenance(ZabbixAPISubClass):
@dojson('maintenance.create')
@checkauth

0 comments on commit 195184a

Please sign in to comment.
Something went wrong with that request. Please try again.