mikamai / akamai_api

Akamai gem+CLI to work with CCU and ECCU interfaces
MIT License
43 stars 19 forks source link

Feature: ECCU wildcard clearing #22

Closed cdenneen closed 9 years ago

cdenneen commented 9 years ago

So ECCU now supports wildcard clearing where as the CCU doesn't (has to be full path). Can this gem be updated to support wildcard remove/invalidate for ECCU function?

nicolaracco commented 9 years ago

Indeed ECCU supports much more features than CCU but it requires to write an XML file. Are you suggesting to implement a command like akamai_api eccu invalidate http://foo.com/*/bar to generate and publish an XML file ?

cdenneen commented 9 years ago

Yes something just like that... so you can use "invalidate" or "remove" (same as ccu) but for eccu which will allow for wildcards like http://foo.com/*/bar or http://foo.com/directory/*

On Tue, Nov 25, 2014 at 4:45 AM, Nicola Racco notifications@github.com wrote:

Indeed ECCU supports much more features than CCU but it requires to write an XML file. Are you suggesting to implement a command like akamai_api eccu invalidate http://foo.com/*/bar to generate and publish an XML file ?

— Reply to this email directly or view it on GitHub https://github.com/mikamai/akamai_api/issues/22#issuecomment-64333105.

nicolaracco commented 9 years ago

I checked the ECCU documentation.

It's definitely doable, but it's not easy because ECCU doesn't directly support wildcards or regexp. Instead it offers a tag to match all nested directories, a tag to match the file extension, and so on.

Maybe we could start with a dumb implementation, able to match only wildcard in directories.

nishantrayan commented 9 years ago

+1 for this. Having this feature would unblock one of my projects to move away from the http wrapper for ccu api requests.

spaghetticode commented 9 years ago

FYI, from the akamai docs: «Using ECCU applications, Akamai recommends that you limit the number of matches to 250 or fewer—see “ECCU Matches and the purge.data File” on page 6 for a definition of ECCU matches. Submitting more than 250 invalidation requests at one time can result in a “global invalidation” –revalidating all content for that host header» I think this should be added in the readme once the feature is added.

nicolaracco commented 9 years ago

Feature implemented as akamai_api eccu revalidate command and gem released with version 0.4.0. Can you check if it is ok ?

nicolaracco commented 9 years ago

@cdenneen @shark-src I'm closing this. Let me know if you have other suggestions