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

Commit

Permalink
added /accounts/addressing/... & /zones/secondary_dns/force_axfr & /z…
Browse files Browse the repository at this point in the history
…ones/logs/control/retention/...
  • Loading branch information
mahtin committed Feb 9, 2020
1 parent 365eed7 commit 1d7ca2f
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions CloudFlare/api_v4.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ def api_v4(self):

# The API commands for /accounts/
accounts(self)
accounts_addressing(self)
accounts_firewall(self)
accounts_secondary_dns(self)

Expand Down Expand Up @@ -211,6 +212,9 @@ def zones_logs(self):
""" API core commands for Cloudflare API"""

self.add('VOID', "zones", "logs")
self.add('AUTH', "zones", "logs/control")
self.add('VOID', "zones", "logs/control/retention")
self.add('AUTH', "zones", "logs/control/retention/flag")
self.add('AUTH_UNWRAPPED', "zones", "logs/received")
self.add('AUTH_UNWRAPPED', "zones", "logs/received/fields")
self.add('AUTH_UNWRAPPED', "zones", "logs/rayids")
Expand Down Expand Up @@ -300,6 +304,7 @@ def zones_secondary_dns(self):
""" API core commands for Cloudflare API"""

self.add('AUTH', "zones", "secondary_dns")
self.add('AUTH', "zones", "secondary_dns/force_axfr")

def user_load_balancers(self):
""" API core commands for Cloudflare API"""
Expand Down Expand Up @@ -396,6 +401,14 @@ def accounts(self):
self.add('VOID', "accounts", "workers")
self.add('AUTH', "accounts", "workers/scripts")

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

self.add('VOID', "accounts", "addressing")
self.add('AUTH', "accounts", "addressing/prefixes")
self.add('VOID', "accounts", "addressing/prefixes", "bgp")
self.add('AUTH', "accounts", "addressing/prefixes", "bgp/status")

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

Expand Down

0 comments on commit 1d7ca2f

Please sign in to comment.