Skip to content
Cloudflare Api using Python
Python
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
source
license
readme.md

readme.md

#Cloudflare API

usage: cloudflareapi.py [-h] [--domain DOMAIN] [--action ACTION]
                        [--content CONTENT] [--record RECORD] [--host HOST]
                        [--id ID]

optional arguments:
  -h, --help            show this help message and exit
  --domain DOMAIN, -d DOMAIN
                        Domain name to perform an action on
  --action ACTION, -a ACTION
                        Action to perform
  --content CONTENT, -c CONTENT
                        Content of DNS Record (IP / FQDN)
  --record RECORD, -r RECORD
                        Type of DNS Record to perform an action on
  --host HOST, -H HOST  Domain name to perform an action on
  --id ID, -i ID        Record ID to perform an action on


Basic Commands:
Lists Zones you Control #python cloudflareapi.py -a list Create a new Zone #python cloudflareapi.py -d example.xyz -a create List DNS For a Zone #python cloudflareapi.py -d example.xyz -a list Create a New DNS Record For a Zone #python cloudflareapi.py -d example.xyz -a add -r -H -c Edit an Existing DNS Record For a Zone #python cloudflareapi.py -d example.xyz -a modify -r -H -c Delete an Existing DNS Record From a Zone #python cloudflareapi.py -d example.xyz -a delete -H Requirements: * Python requests library (https://pypi.python.org/pypi/requests#downloads) * Cloudflare API Credentials
You can’t perform that action at this time.