简体   繁体   English

放心使用Akamai Purge API

[英]Using Akamai Purge API with rest assured

Just been handed the task of writing a java method to do an akamai purge. 刚刚完成了编写Java方法来进行akamai清除的任务。 I've been through the dev docs at akamai, tried to use their community (which seems to allow new members), and things are still quite a jumble. 我浏览过akamai的dev文档,试图使用他们的社区(这似乎允许新成员),但是事情仍然很混乱。 Other than just pointing me to the Akamai site, can I get some assistance to at least get started? 除了将我指向Akamai网站之外,我是否可以获得一些帮助,至少可以开始使用?

I have the host (API Base URL), I have the Access Token, and I have the Content Provider Codes. 我有主机(API基本URL),我有访问令牌,并且我有内容提供者代码。 What else am I missing? 我还想念什么?

Is there not just a simple REST call that can be made to perform the purge? 不仅可以执行清除操作的简单REST调用吗? Everything I see on the Akamai site says there is, but has no useful, simple examples. 我在Akamai网站上看到的所有内容都说有,但没有有用的简单示例。 Other questions here, just refer the questioner to the Akamai dev site where they sited, or their community site where it seems registration no longer works. 在这里的其他问题,只需将提问者转至他们所位于的Akamai开发站点,或似乎无法进行注册的社区站点。

So, lets say I have the following: 因此,可以说我有以下几点:

Host - https://akab-myhost.purge.akamaapis.net Access Token - akab-alphanumericstuff-alphanumericstuff Content Provider Codes - 919191 - www.thisismysite.com.pm1 919192 - www.thisismysite.com.pm2

How do I (using java) make a rest call to purge CPC 919191? 我如何(使用Java)拨打电话以清除CPC 919191?

Thanks! 谢谢! Greg 格雷格

Have you tried api.ccu.akamai.com/ccu/v2/docs/index.html ? 您是否尝试过api.ccu.akamai.com/ccu/v2/docs/index.html? It gives pretty clear steps on how the REST calls are made. 它给出了有关如何进行REST调用的非常清晰的步骤。 Also i would recommend to reconsider if you really want to purge CP Code? 我也建议您重新考虑是否真的要清除CP代码? As this will purge everything with that CP Code. 因为这将清除该CP代码中的所有内容。 Instead i would recommend URL path or extension based Purge. 相反,我会建议基于URL路径或扩展名的Purge。

Also i would recommend to use fast purge API: https://developer.akamai.com/api/purge/ccu-v2/resources.html Normal CCU takes ~5min to purge, where as fast purge takes less than 5sec to purge. 我也建议使用快速清除API: https : //developer.akamai.com/api/purge/ccu-v2/resources.html正常CCU清除需要大约5分钟,而快速清除需要不到5秒的时间进行清除。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM