@hackage hsakamai0.1.0.1

Akamai API(Edgegrid and Netstorage)

hsakamai

Hackage version Build Status

Akamai API for Haskell.

Install

$ stack install

Usage for Netstorage

Put netstorage.yml in a local directory. The format is below.

$ cat > netstorage.yml
hostname: hostname-of-netstorage
key: secret-key
keyname: keyname
cpcode: cpcode
ssl: false

Next use netstorage command.

$ netstorage --help
Usage: netstorage COMMAND

Available options:
-h,--help                Show this help text

Available commands:
download                 download
upload                   upload
dir                      dir
stat                     stat
delete                   delete
config                   config

Usage for Fast-Purge

Put edgegrid.yml in a local directory. The format is below.

$ cat > edgegrid.yml
clientsecret: xx
hostname: xx
accesstoken: xx
clienttoken: xx

Next use purge command.

$ purge --help
Usage: purge COMMAND

Available options:
-h,--help                Show this help text

Available commands:
invalidate-url           invalidate-url
invalidate-cpcode        invalidate-cpcode
invalidate-tag           invalidate-tag
delete-url               delete-url
delete-cpcode            delete-cpcode
delete-tag               delete-tag
config                   config
$ purge invalidate-url Production https://foo.com

References