Skip to content

Commit

Permalink
Add proxy API
Browse files Browse the repository at this point in the history
  • Loading branch information
rday committed Aug 23, 2011
1 parent 6b6ddfd commit 195184a
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions zabbix/zabbix_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 195184a

Please sign in to comment.