551
阿里云
查询域名配置__配置操作接口_API 手册_CDN-阿里云
描述
获取指定加速域名的配置
请求参数
参数 | 类型 | 必要 | 描述 |
---|---|---|---|
Action | String | 是 | 操作接口名,系统规定参数 取值:DescribeDomainConfigs |
DomainName | String | 是 | 需要接入CDN的域名 |
ConfigList | String | 否 | 需要查询的配置,多个配置用逗号(半角)分隔,当前支持cache_expired、cc、error_page、http_header、optimize、page_compress、ignore_query_string、range、referer、req_auth、src_host、video_seek、waf, notify_url, redirect_type 配置;不填代表查询所有 |
ConfigList参数说明
名称 | 类型 | 描述 |
---|---|---|
cache_expired | String | 目录或文件过期配置 |
cc | String | CC防护功能、IP黑白名单配置 |
error_page | String | 自定义404错误页面跳转 |
http_header | String | 自定义http头 |
optimize | String | 页面优化 |
page_compress | String | 智能压缩 |
ignore_query_string | String | 过滤参数 |
range | String | range回源功能 |
referer | String | Refer防盗链功能 |
req_auth | String | 访问鉴权配置 |
src_host | String | 回源host |
video_seek | String | 拖拽播放功能 |
waf | String | Waf防护功能 |
notify_url | String | 视频直播notify url |
redirect_type | String | 强制访问跳转方式, 取值: Off, Http, Https |
返回参数
名称 | 类型 | 描述 |
---|---|---|
RequestId | String | 请求ID |
DomainConfigs | String | 对应的配置数据 |
特殊错误码
错误代码 | 描述 | Http 状态码 | 语义 |
---|---|---|---|
Throttling | Request was denied due to request throttling. | 503 | 请求被流量控制限制 |
IllegalOperation | Illegal domain, operation 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 | 域名已下线 |
ServiceBusy | The specified Domain is configuring, please retry later. | 403 | 域名正在配置中, 请稍后再试 |
InvalidDomain.Configure_failed | Failed to configure the provided domain. | 500 | 域名配置失败 |
InvalidConfigList.ValueNotSupported | The specified value of parameter ConfigList is not supported. | 400 | 指定的 ConfigList 值不合法(只支持以上13种配置) |
MissingParameter | The specified value of parameter DomainName is not valid. | 400 | 缺少DomainName参数 |
公共错误码请查看
示例
请求示例:
https://cdn.aliyuncs.com?Action=DescribeDomainConfigs&DomainName=test.com
&ConfigList="cache_expired,cc,page_compress"
&<公共请求参数>
返回示例:
JSON格式
{
"DomainConfigs": {
"PageCompressConfig": {
"Enable": "off"
},
"WafConfig": {
"Enable": "off"
},
"IgnoreQueryStringConfig": {
"Enable": "on"
},
"VideoSeekConfig": {
"Enable": "on"
},
"ReqAuthConfig": {
"Key1": "vadfawerq",
"Key2":"Acbdert",
"AuthType": "type_c"
},
"RangeConfig": {
"Enable": "on"
},
"SrcHostConfig": {
"DomainName": "www.aliyun.com"
},
"OptimizeConfig": {
"Enable": "off"
},
"ErrorPageConfig": {
"PageType": "charity",
"CustomPageUrl": "https://promotion.alicdn.com/help/oss/error.html",
"ErrorCode": "404"
},
"RefererConfig": {
"AllowEmpty": "on",
"ReferType": "block",
"ReferList": "www.google.com"
},
"CcConfig": {
"Enable":"on",
"AllowIps":"1.2.3.4",
"BlockIps":"3.4.5.6"
},
"HttpHeaderConfigs": {
"HttpHeaderConfig": [
{
"Status": "success",
"HeaderKey": "content-type",
"ConfigId": "602016",
"HeaderValue": "application"
},
{
"Status": "testing",
"HeaderKey": "content-type",
"ConfigId": "608841",
"HeaderValue": "app"
},
{
"Status": "success",
"HeaderKey": "cache-control",
"ConfigId": "602018",
"HeaderValue": "application"
},
{
"Status": "success",
"HeaderKey": "content-disposition",
"ConfigId": "602021",
"HeaderValue": "application"
},
{
"Status": "success",
"HeaderKey": "content-language",
"ConfigId": "602024",
"HeaderValue": "application"
},
{
"Status": "success",
"HeaderKey": "expires",
"ConfigId": "602026",
"HeaderValue": "application"
},
{
"Status": "success",
"HeaderKey": "access-control-allow-origin",
"ConfigId": "602036",
"HeaderValue": "application"
},
{
"Status": "success",
"HeaderKey": "access-control-allow-methods",
"ConfigId": "602038",
"HeaderValue": "application"
},
{
"Status": "success",
"HeaderKey": "access-control-max-age",
"ConfigId": "602040",
"HeaderValue": "application"
},
{
"Status": "success",
"HeaderKey": "content-type",
"ConfigId": "609871",
"HeaderValue": "bbbb"
}
]
},
"CacheExpiredConfigs": {
"CacheExpiredConfig": [
{
"Status": "testing",
"TTL": "1000",
"CacheType": "suffix",
"CacheContent": "jpeg",
"Weight":"1",
"ConfigId": "604991"
},
{
"Status": "testing",
"TTL": "600",
"CacheType": "suffix",
"CacheContent": "jpg,png",
"Weight":"99",
"ConfigId": "607216"
},
{
"Status": "success",
"TTL": "99",
"CacheType": "suffix",
"CacheContent": "ppp",
"ConfigId": "609865"
},
{
"Status": "testing",
"TTL": "300",
"CacheType": "path",
"CacheContent": "/bmp",
"ConfigId": "606402"
},
{
"Status": "testing",
"TTL": "600",
"CacheType": "path",
"CacheContent": "/static/html/",
"ConfigId": "607206"
},
{
"Status": "success",
"TTL": "100",
"CacheType": "path",
"CacheContent": "/abc/def",
"ConfigId": "609853"
}
]
},
"NotifyUrlConfig": {
"Enable":"on",
"NotifyUrl":"https://test.com"
},
"RedirectTypeConfig": {
"RedirectType": "Https"
},
},
"RequestId": "67E027D8-7A58-4599-B17A-63E9A54FC54F"
}
XML格式:
<DomainConfigs>
<PageCompressConfig>
<Enable>off</Enable>
</PageCompressConfig>
<WafConfig>
<Enable>off</Enable>
</WafConfig>
<IgnoreQueryStringConfig>
<Enable>on</Enable>
</IgnoreQueryStringConfig>
<VideoSeekConfig>
<Enable>on</Enable>
</VideoSeekConfig>
<ReqAuthConfig>
<Key1>vadfawerq</Key1>
<Key2>Acbdert</Key2>
<AuthType>wangsu</AuthType>
</ReqAuthConfig>
<RangeConfig>
<Enable>on</Enable>
</RangeConfig>
<SrcHostConfig>
<DomainName>www.aliyun.com</DomainName>
</SrcHostConfig>
<OptimizeConfig>
<Enable>off</Enable>
</OptimizeConfig>
<ErrorPageConfig>
<PageType>charity</PageType>
<CustomPageUrl>https://promotion.alicdn.com/help/oss/error.html</CustomPageUrl>
<ErrorCode>404</ErrorCode>
</ErrorPageConfig>
<RefererConfig>
<AllowEmpty>on</AllowEmpty>
<ReferType>block</ReferType>
<ReferList>www.google.com</ReferList>
</RefererConfig>
<CcConfig>
<Enable>on</Enable>
<AllowIps>1.2.3.4</AllowIps>
<BlockIps>3.4.5.6</BlockIps>
</CcConfig>
<HttpHeaderConfigs>
<HttpHeaderConfig>
<Status>success</Status>
<HeaderKey>content-type</HeaderKey>
<ConfigId>602016</ConfigId>
<HeaderValue>application</HeaderValue>
</HttpHeaderConfig>
<HttpHeaderConfig>
<Status>testing</Status>
<HeaderKey>content-type</HeaderKey>
<ConfigId>608841</ConfigId>
<HeaderValue>app</HeaderValue>
</HttpHeaderConfig>
<HttpHeaderConfig>
<Status>success</Status>
<HeaderKey>cache-control</HeaderKey>
<ConfigId>602018</ConfigId>
<HeaderValue>application</HeaderValue>
</HttpHeaderConfig>
<HttpHeaderConfig>
<Status>success</Status>
<HeaderKey>content-disposition</HeaderKey>
<ConfigId>602021</ConfigId>
<HeaderValue>application</HeaderValue>
</HttpHeaderConfig>
<HttpHeaderConfig>
<Status>success</Status>
<HeaderKey>content-language</HeaderKey>
<ConfigId>602024</ConfigId>
<HeaderValue>application</HeaderValue>
</HttpHeaderConfig>
<HttpHeaderConfig>
<Status>success</Status>
<HeaderKey>expires</HeaderKey>
<ConfigId>602026</ConfigId>
<HeaderValue>application</HeaderValue>
</HttpHeaderConfig>
<HttpHeaderConfig>
<Status>success</Status>
<HeaderKey>access-control-allow-origin</HeaderKey>
<ConfigId>602036</ConfigId>
<HeaderValue>application</HeaderValue>
</HttpHeaderConfig>
<HttpHeaderConfig>
<Status>success</Status>
<HeaderKey>access-control-allow-methods</HeaderKey>
<ConfigId>602038</ConfigId>
<HeaderValue>application</HeaderValue>
</HttpHeaderConfig>
<HttpHeaderConfig>
<Status>success</Status>
<HeaderKey>access-control-max-age</HeaderKey>
<ConfigId>602040</ConfigId>
<HeaderValue>application</HeaderValue>
</HttpHeaderConfig>
<HttpHeaderConfig>
<Status>success</Status>
<HeaderKey>content-type</HeaderKey>
<ConfigId>609871</ConfigId>
<HeaderValue>bbbb</HeaderValue>
</HttpHeaderConfig>
</HttpHeaderConfigs>
<CacheExpiredConfigs>
<CacheExpiredConfig>
<Status>testing</Status>
<TTL>1000</TTL>
<CacheType>suffix</CacheType>
<CacheContent>jpeg</CacheContent>
<ConfigId>604991</ConfigId>
</CacheExpiredConfig>
<CacheExpiredConfig>
<Status>testing</Status>
<TTL>600</TTL>
<CacheType>suffix</CacheType>
<CacheContent>jpg,png</CacheContent>
<ConfigId>607216</ConfigId>
</CacheExpiredConfig>
<CacheExpiredConfig>
<Status>success</Status>
<TTL>99</TTL>
<CacheType>suffix</CacheType>
<CacheContent>ppp</CacheContent>
<ConfigId>609865</ConfigId>
</CacheExpiredConfig>
<CacheExpiredConfig>
<Status>testing</Status>
<TTL>300</TTL>
<CacheType>path</CacheType>
<CacheContent>/bmp</CacheContent>
<ConfigId>606402</ConfigId>
</CacheExpiredConfig>
<CacheExpiredConfig>
<Status>testing</Status>
<TTL>600</TTL>
<CacheType>path</CacheType>
<CacheContent>/static/html/</CacheContent>
<ConfigId>607206</ConfigId>
</CacheExpiredConfig>
<CacheExpiredConfig>
<Status>success</Status>
<TTL>100</TTL>
<CacheType>path</CacheType>
<CacheContent>/abc/def</CacheContent>
<ConfigId>609853</ConfigId>
</CacheExpiredConfig>
</CacheExpiredConfigs>
<RedirectTypeConfig>
<RedirectType>Https</RedirectType>
</RedirectTypeConfig>
</DomainConfigs>
<RequestId>67E027D8-7A58-4599-B17A-63E9A54FC54F</RequestId>
最后更新:2016-11-23 17:16:03
上一篇:
查询操作余量__刷新预热接口_API 手册_CDN-阿里云
下一篇:
设置页面优化__配置操作接口_API 手册_CDN-阿里云
日志合并工具__周边工具_CDN-阿里云
数据库紧急救援__工作说明书_尊享服务_支持计划-阿里云
使用 psql 命令迁移 PostgreSQL 数据__快速入门(PostgreSQL)_云数据库 RDS 版-阿里云
附录:PPAS 开发驱动程序__快速入门(PPAS)_云数据库 RDS 版-阿里云
云服务器 ECS网络和安全性内网
短信是否有API或者SDK?__常见问题_短信服务-阿里云
编辑用户__用户管理_DMS for MongoDB_用户指南(NoSQL)_数据管理-阿里云
服务等级协议__产品简介_消息服务-阿里云
阿里云因运营商线路故障,海外 CDN 瘫痪 2 个小时
RAM和STS介绍__权限管理_最佳实践_对象存储 OSS-阿里云
相关内容
常见错误说明__附录_大数据计算服务-阿里云
发送短信接口__API使用手册_短信服务-阿里云
接口文档__Android_安全组件教程_移动安全-阿里云
运营商错误码(联通)__常见问题_短信服务-阿里云
设置短信模板__使用手册_短信服务-阿里云
OSS 权限问题及排查__常见错误及排除_最佳实践_对象存储 OSS-阿里云
消息通知__操作指南_批量计算-阿里云
设备端快速接入(MQTT)__快速开始_阿里云物联网套件-阿里云
查询API调用流量数据__API管理相关接口_API_API 网关-阿里云
使用STS访问__JavaScript-SDK_SDK 参考_对象存储 OSS-阿里云