Skip to content

Commit

Permalink
Merge pull request cloudflare#64 from aaranmcguire/support-secondary-dns
Browse files Browse the repository at this point in the history
DNS-3431: Support Secondary DNS Endpoints
  • Loading branch information
patryk committed Apr 12, 2019
2 parents 11cc361 + 019393a commit 286cb0f
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions CloudFlare/api_v4.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ def api_v4(self):
# The API commands for /account/
account(self)
account_load_balancing_analytics(self)
account_secondary_dns(self)

def user(self):
""" API core commands for Cloudflare API"""
Expand Down Expand Up @@ -82,6 +83,7 @@ def zones(self):
self.add('AUTH', "zones", "purge_cache")
self.add('AUTH', "zones", "railguns")
self.add('AUTH', "zones", "railguns", "diagnose")
self.add('AUTH', "zones", "secondary_dns")
self.add('AUTH', "zones", "subscription")
self.add('AUTH', "zones", "subscriptions")

Expand Down Expand Up @@ -307,6 +309,13 @@ def account_load_balancing_analytics(self):
self.add('AUTH', "account", "load_balancing_analytics/events")
self.add('AUTH', "account", "load_balancing_analytics/entities")

def account_secondary_dns(self):
""" API core commands for Cloudflare API"""

self.add('VOID', "account", "secondary_dns")
self.add('AUTH', "account", "secondary_dns/masters")
self.add('AUTH', "account", "secondary_dns/tsigs")

def zones_media(self):
""" API core commands for Cloudflare API"""

Expand Down

0 comments on commit 286cb0f

Please sign in to comment.