This most likely can be first of several posts on tools and approach taken to automate tasks in Akamai. Before we look into specific toolset lets peak what is Akamai’s vision on automation
From what I have seen some of the features do work nicely and some of them are still in
alpha. We will be focusing on Akamai CLI and extending it with plugin to manage network lists.
Akamai CLI is a tool which allows us to write plugin in most of common languages ( for me it will be Golang ) and then use it from console. Since the tool is well documented I will skip introducing it and send you off to documentation
Choosing your client
Before you go ahead and write your own plugin you should decide on which client to choose ( or write your own ) which will take over communication with Akamai’s API.
For Golang Akamai have client which you can get here – however inspired by colleague of mine who wrote go-gitlab ( and not only ) I decided to make client a bit more robust and organised and came up ( as we engineers usually do 🙂 ) with alternative version.
This client can be found under https://github.com/RafPe/go-edgegrid
Akamai-CLI Network Lists
We start off by installing the plugin into Akamai’s CLI toolkit by running
akamai install https://github.com/RafPe/akamai-cli-netlist
which in return shows us the output similar to
From this point onwards we can use of all benefits of our new plugin. Just to give it a spin I will try explore just getting the lists …
Getting all network lists
Getting one list with all elements
Want more ?….
Rest of them is well documented in repository page under https://github.com/RafPe/akamai-cli-netlist and from there I encourage you to explore the options you have for automation and let me know in comments did it work for you 🙂
More community extension
My extension is now not the only one recently created – below is the list of other ones which you can make use of already
Akamai CLI for Netstorage https://github.com/partamonov/akamai-cli-netstorage
Akamai CLI for Siteshield https://github.com/partamonov/akamai-cli-siteshield
Akamai CLI for Firewall Rules Notifications https://github.com/partamonov/akamai-cli-frn