如何使用Apigee中的缓存键清除特定缓存

时间:2016-06-17 04:15:09

标签: curl apigee

  

curl -v -H by-pass = true -u rsekhar@beachbody.com   'https://api.enterprise.apigee.com/v1/organizations/beachbody/environments/test/caches/beachbodyCache/entries/beachbody__test__trainers-test-dev4-v1__default__apiProxyURI__/tony-horton?action=clear'   -X POST

我使用代理proxy.pathsuffixrequest.uri

生成密钥

缓存密钥: beachbody__test__trainers-test-dev4-v1__default__apiProxyURI __ / tony-horton

1 个答案:

答案 0 :(得分:0)

我得到了答案。使用' /'采用编码格式,即%2F

请求: curl -v -H by-pass = true -u rsekhar@beachbody.com' https://api.enterprise.apigee.com/v1/organizations/beachbody/environments/test/caches/beachbodyCache/entries/beachbody__test__trainers-test-dev4-v1__default__apiProxyURI__%2Ftony-horton?action=clear' -X POST

使用这种方式我们可以从终端

清除特定的Apigee缓存