当用户设置了缓存标签功能后,通过调用RefreshObjectCacheByCacheTag指定缓存标签对缓存进行刷新。
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
授权信息
当前API暂无授权信息透出。
请求参数
名称 | 类型 | 必填 | 描述 | 示例值 |
---|---|---|---|---|
DomainName | string | 是 | 加速域名。 | example.com |
CacheTag | string | 是 | 缓存标签。多个用逗号隔开。 | tag1,tag2 |
Force | boolean | 否 | 当回源内容和源站资源对比后不一致时,是否刷新对应目录下的资源。默认为 false。
| true |
返回参数
示例
正常返回示例
JSON
格式
{
"RequestId": "2E5AD83F-BD7B-462E-8319-2E30E305519A",
"RefreshTaskId": "17772470184"
}
错误码
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. | - |
400 | InvalidObjectPath.Size.Malformed | The size of ObjectPath is bigger than 1000. | 预热URL个数请勿超过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. | - |
访问错误中心查看更多错误码。