Skip to content
This repository was archived by the owner on Nov 22, 2024. It is now read-only.

Commit b07a3c9

Browse files
authored
Merge pull request #34 from Bellardia/Bellardia-patch-1
Add support for organizational monitors and pools
2 parents fb12f30 + 182a770 commit b07a3c9

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

CloudFlare/api_v4.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -274,6 +274,13 @@ def organizations(self):
274274
branch = getattr(self, "organizations")
275275
setattr(branch, "virtual_dns",
276276
self._add_with_auth(base, "organizations", "virtual_dns"))
277+
setattr(branch, "load_balancers",
278+
self._add_with_auth(base, "organizations", "load_balancers"))
279+
branch = getattr(getattr(self, "organizations"), "load_balancers")
280+
setattr(branch, "monitors",
281+
self._add_with_auth(base, "organizations", "load_balancers/monitors"))
282+
setattr(branch, "pools",
283+
self._add_with_auth(base, "organizations", "load_balancers/pools"))
277284

278285
def certificates(self):
279286
""" API core commands for Cloudflare API"""

0 commit comments

Comments
 (0)