阅读478 返回首页    go windows


设置路径缓存策略__配置操作接口_API 手册_CDN-阿里云

描述

修改目录过期配置

请求参数

参数名 类型 必须? 说明
Action String 操作接口名,系统规定参数,取值:SetPathCacheExpiredConfig
DomainName String 您的加速域名
CacheContent String 填写路径
TTL String 缓存时间设置,单位为秒
Weight String 此条配置的权重值, 取值范围为1-99, 数值越大, 优先级越高.默认值为1.

返回参数

名称 类型 描述
RequestID String 该条任务请求ID

特殊错误码

错误代码 描述 Http 状态码 语义
InvalidWeight.Malformed The specified value of parameter CacheContent is malformed. 400 指定的 Weight 值不合法(格式错误)
InvalidWeight.ValueNotSupported The specified value of parameter Weight is not supported. 400 指定的 Weight 不合法(超出可选范围)

示例

请求示例:

https://cdn.aliyuncs.com/?Action=SetPathCacheExpiredConfig
&CacheContent=%2Fstatic%2Fhtml%2F
&DomainName=www.macaron.org.cn
&TTL=600
&Weight=50
&<公共请求参数>

返回示例

JSON格式:

{
    "RequestId": "04F0F334-1335-436C-A1D7-6C044FE73368"
}

XML格式:

<SetPathCacheExpiredConfigResponse>
    <RequestId>AED00EC1-32A8-4D48-BEB9-BD782AF3C6BD</RequestId>
</SetPathCacheExpiredConfigResponse>

最后更新:2016-11-23 17:16:03

  上一篇:go 设置文件类型缓存策略__配置操作接口_API 手册_CDN-阿里云
  下一篇:go 修改文件类型缓存策略__配置操作接口_API 手册_CDN-阿里云