Skip to content

nbommu1/akcli

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

akcli

An Akamai command line client written in Python. So far only the DNS config API is supported since it's the only scratch I need itching. PRs welcome.

What can it do?

Currently, the following items are supported for DNS services at Akami.

  • add_record
  • fetch_record
  • fetch_zone
  • list_records
  • remove_record

The --json flag will format output as JSON to be consumed by other tools such as jq.

Installation

PyPi

pip install akcli

Manually

git clone https://github.com/iamseth/akcli.git
cd akcli
python setup.py build
sudo python setup.py install

Configuration

By default, akcli looks for a config file at ~/.akamai.cfg. The file should look something like this.

[auth]
baseurl = https://abcd-yaddayadda.luna.akamaiapis.net/
client_token = abcd-yaddayadda
client_secret = randomstuffhere
access_token = abcd-randomstuffhere

Usage

Usage: akcli [OPTIONS] COMMAND [ARGS]...

Options:
  -v, --verbose      Enables verbose mode.
  --debug            Enables debug mode.
  --json             Output as JSON.
  --config FILENAME
  --version          Show the version and exit.
  --help             Show this message and exit.

Commands:
  dns

About

Akamai CLI tool written in Python

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%