Skip to content

Commit

Permalink
Add support for organizational monitors and pools
Browse files Browse the repository at this point in the history
  • Loading branch information
Bellardia authored Aug 15, 2017
1 parent 5358208 commit 182a770
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions CloudFlare/api_v4.py
Original file line number Diff line number Diff line change
Expand Up @@ -274,6 +274,13 @@ def organizations(self):
branch = getattr(self, "organizations")
setattr(branch, "virtual_dns",
self._add_with_auth(base, "organizations", "virtual_dns"))
setattr(branch, "load_balancers",
self._add_with_auth(base, "organizations", "load_balancers"))
branch = getattr(getattr(self, "organizations"), "load_balancers")
setattr(branch, "monitors",
self._add_with_auth(base, "organizations", "load_balancers/monitors"))
setattr(branch, "pools",
self._add_with_auth(base, "organizations", "load_balancers/pools"))

def certificates(self):
""" API core commands for Cloudflare API"""
Expand Down

0 comments on commit 182a770

Please sign in to comment.