描述
刷新节点上的文件内容。刷新指定URL内容至Cache节点,支持URL批量刷新。
限制:
参数 | 类型 | 必要 | 描述 |
Action | String | 是 | 操作接口名,系统规定参数,取值:RefreshObjectCaches |
ObjectPath | String | 是 | 输入示例:abc.com/image/1.png,多个URL之间需要用换行符(\n或\r\n)分隔 |
ObjectType | String | 否 | 可选, 刷新的类型, 其值可以为File | Directory,默认是File。 |
名称 | 类型 | 描述 |
RefreshTaskId | String | 刷新返回的任务ID,多个任务ID用逗号(半角)分隔 |
ErrorCode 错误码 | Message 错误信息 | HTTP 状态 | 语义 |
Throttling | Request was denied due to request throttling. | 503 | 请求被流量控制限制 |
IllegalOperation | Illegal domain operate is not permitted. | 403 | 非法域名, 无法操作 |
OperationDenied | Your account does not open CDN service yet. | 403 | 未开通CDN服务 |
OperationDenied | Your CDN service is suspended. | 403 | CDN服务已被停止 |
InvalidDomain.NotFound | The domain provided does not belong to you. | 404 | 域名不存在或不属于当前用户 |
InvalidDomain.Offline | The domain provided is offline. | 404 | 域名已下线 |
QuotaExceeded.Refresh | You’ve exceeded the prescribed refresh limits. | 400 | 超出当日刷新限制 |
ServiceBusy | The specified Domain is configuring, please retry later. | 403 | 域名正在配置中, 请稍后再试 |
InvalidDomain.Configure_failed | Failed to configure the provided domain. | 500 | 域名配置失败, 无法刷新 |
MissingParameter | The input parameter “ObjectPath” that is mandatory for processing this request is not supplied. | 400 | 缺少ObjectPath参数 |
InvalidObjectType.ValueNotSupported | The specified value of "<ObjectType>" is not supported. | 400 | ObjectType值不支持 |
InvalidObjectPath.Malformed | The specific value of parameter ObjectPath is malformed. | 400 | ObjectPath值格式错误 |
InvalidExtensiveDomain.ValueNotSupported | Extensive domain not supported. | 400 | 不支持泛域名 |
https://cdn.aliyuncs.com?&Action=RefreshObjectCaches&ObjectPath=test.test.com/test.txt&ObjectType=File&<公共请求参数>
{
"RefreshTaskId":"704222904","RequestId":"D61E4801-EAFF-4A63-AAE1-FBF6CE1CFD1C"
}
<?xml version="1.0" encoding="utf-8"?>
<RefreshObjectCachesResponse>
<RefreshTaskId>704225667</RefreshTaskId>
<RequestId>AB14769A-A5F2-4CCD-B85B-3368DFF63C0A</RequestId>
</RefreshObjectCachesResponse>
版权声明:本文内容由阿里云实名注册用户自发贡献,版权归原作者所有,阿里云开发者社区不拥有其著作权,亦不承担相应法律责任。具体规则请查看《阿里云开发者社区用户服务协议》和《阿里云开发者社区知识产权保护指引》。如果您发现本社区中有涉嫌抄袭的内容,填写侵权投诉表单进行举报,一经查实,本社区将立刻删除涉嫌侵权内容。