Skip to content

Commit

Permalink
Merge pull request cloudflare#34 from Bellardia/Bellardia-patch-1
Browse files Browse the repository at this point in the history
Add support for organizational monitors and pools
  • Loading branch information
mahtin committed Aug 22, 2017
2 parents fb12f30 + 182a770 commit b07a3c9
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 b07a3c9

Please sign in to comment.