hubot-akamai-ccu
v0.0.4
Published
A hubot scirpt that talks Akamai CCU REST API https://api.ccu.akamai.com/ccu/v2/docs/index.html
Downloads
1
Readme
hubot-akamai-ccu
A hubot scirpt that talks Akamai CCU REST API https://api.ccu.akamai.com/ccu/v2/docs/index.html
See src/akamai-ccu.coffee
for full documentation.
Installation
In hubot project repo, run:
npm install hubot-akamai-ccu --save
Then add hubot-akamai-ccu to your external-scripts.json
:
["hubot-akamai-ccu"]
Sample Interaction
user1> hubot akamai-ccu remove cache http://your.domain/foo on staging
hubot> Request accepted.
The request would be completed in 240 seconds.
You can check progress with `akamai-ccu purge status /ccu/v2/purges/foo-bar-baz`
user1> hubot akamai-ccu purge status /ccu/v2/purges/foo-bar-baz
hubot> originalEstimatedSeconds: 240
originalQueueLength: 0
purgeId: foo-bar-baz
purgeStatus: In-Progress
submittedBy: [email protected]
progressUri: /ccu/v2/purges/foo-bar-baz
user1> hubot akamai-ccu queue length
hubot> The queue length is 1
Configuration
HUBOT_AKAMAI_CCU_USERNAME
- User name for API authentication. Required.
HUBOT_AKAMAI_CCU_PASSWORD
- Password for API authentication. Required.
HUBOT_AKAMAI_CCU_ALLOWED_URL_REGEXP
- Regexp pattern to allow to purge. Optional. Default to all url.
HUBOT_AKAMAI_CCU_ALLOWED_CPCODE
- Comma separated CP Codes to allow purge. Optional. Default to all CP Codes.