Skip to content

SmugZombie/Cloudflareapi.py

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 

Repository files navigation

#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

About

Cloudflare Api using Python

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages