调用DescribeWebCacheConfigs查询网站业务静态页面缓存的配置。
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
请求参数
名称 | 类型 | 是否必选 | 示例值 | 描述 |
---|---|---|---|---|
Action | String | 是 | DescribeWebCacheConfigs |
要执行的操作。取值:DescribeWebCacheConfigs |
Domains.N | RepeatList | 是 | www.aliyun.com |
网站业务的域名。 说明 域名必须已配置网站业务转发规则且关联了增强功能套餐的DDoS高防实例。您可以调用DescribeDomains查询所有域名。
|
RegionId | String | 否 | cn-hangzhou |
DDoS高防服务地域ID。取值:
|
ResourceGroupId | String | 否 | default |
DDoS高防实例在资源管理产品中所属的资源组ID。默认为空,即属于默认资源组。 |
返回数据
名称 | 类型 | 示例值 | 描述 |
---|---|---|---|
DomainCacheConfigs | Array |
静态页面缓存的配置信息。 |
|
CustomRules | Array |
自定义规则信息。 |
|
CacheTtl | Long | 86400 |
页面缓存的过期时间。单位:秒。 |
Mode | String | standard |
缓存模式。取值:
|
Name | String | c1 |
规则名称。 |
Uri | String | /blog/ |
缓存页面的路径。 |
Domain | String | www.aliyun.com |
网站域名。 |
Enable | Integer | 1 |
开关状态。取值:
|
Mode | String | bypass |
缓存模式。取值:
|
RequestId | String | 0bcf28g5-d57c-11e7-9bs0-d89d6717dxbc |
本次请求的ID。 |
示例
请求示例
http(s)://[Endpoint]/?Action=DescribeWebCacheConfigs
&Domains.1=www.aliyun.com
&<公共请求参数>
正常返回示例
XML
格式
<DescribeWebCacheConfigsResponse>
<RequestId>0bcf28g5-d57c-11e7-9bs0-d89d6717dxbc</RequestId>
<DomainCacheConfigs>
<Domain>www.aliyun.com</Domain>
<Enable>1</Enable>
<Mode>bypass</Mode>
<CustomRules>
<Name>c1</Name>
<Uri>/blog/</Uri>
<Mode>standard</Mode>
<CacheTtl>86400</CacheTtl>
</CustomRules>
</DomainCacheConfigs>
</DescribeWebCacheConfigsResponse>
JSON
格式
{
"RequestId": "0bcf28g5-d57c-11e7-9bs0-d89d6717dxbc",
"DomainCacheConfigs": [
{
"Domain": "www.aliyun.com",
"Enable": 1,
"Mode": "bypass",
"CustomRules": [
{
"Name": "c1",
"Uri": "/blog/",
"Mode": "standard",
"CacheTtl": 86400
}
]
}
]
}
错误码
访问错误中心查看更多错误码。
在文档使用中是否遇到以下问题
更多建议
匿名提交