当用户设置了缓存标签功能后,通过调用RefreshObjectCacheByCacheTag指定缓存标签对缓存进行刷新。
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
授权信息
当前API暂无授权信息透出。
请求参数
名称 | 类型 | 必填 | 描述 | 示例值 |
---|---|---|---|---|
DomainName | string | 是 | 加速域名。 | example.com |
CacheTag | string | 是 | 缓存标签。多个用逗号隔开。 | tag1,tag2 |
Force | boolean | 否 | 当回源内容和源站资源对比后不一致时,是否刷新对应目录下的资源。默认为 false。
| true |
返回参数
示例
正常返回示例
JSON
格式
{
"RequestId": "0AEDAF20-4DDF-4165-8750-47FF9C1929C9",
"RefreshTaskId": "17410889914"
}
错误码
HTTP status code | 错误码 | 错误信息 | 描述 |
---|---|---|---|
400 | SingleRequest.OverLimit | A maximum of 1000 URLs are supported for each request. | - |
400 | InvalidObjectType.Malformed | The specified ObjectType is invalid. | 不支持该ObjectType,请重新输入。 |
400 | InvalidObjectPath.Malformed | The specified ObjectPath is invalid. | ObjectPath错误,请填写正确的ObjectPath。 |
400 | InvalidObjectPath.Size.Malformed | The size of ObjectPath is bigger than 1000. | - |
400 | QuotaExceeded.Refresh | You've exceeded the prescribed refresh limits. | - |
400 | QuotaExceeded.Refresh | Your refresh attempts have exceeded the daily limit. | 超出当日刷新限制。今日刷新数已用完。您可以通过刷新接口查询今日的刷新次数。 |
400 | InvalidExtensiveDomain.ValueNotSupported | The specified ExtensiveDomain is not supported. | 不支持泛域名。 |
400 | QuotaPerMinuteExceeded.Refresh | You tried to refresh too frequently; please try again later. | 刷新太频繁,请稍后再试。 |
400 | TooMany.Refresh | The refresh queue is full; please try again later. | 域名正在刷新的个数已经达到上限,请稍后再试。 |
400 | InvalidExtensiveDomain.ValueNotSupported | Extensive domain not supported. | - |
400 | PreloadQueueFull | Preload queue is full, please try again later! | - |
400 | QuotaPerMinuteExceeded.Refresh | You've exceeded the prescribed refresh limits per minute. | - |
400 | InvalidStations.Malformed | The specified Stations is invalid. | - |
400 | InvalidParameters | The parameters you provided are invalid. | - |
429 | TooManyRequests | Too many requests, please try again later | 提交太频繁,请稍候再试 |
访问错误中心查看更多错误码。