描述
获取指定加速域名的配置
请求参数
参数 | 类型 | 必要 | 描述 |
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 配置;不填代表查询所有 |
名称 | 类型 | 描述 |
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参数 |
http://cdn.aliyuncs.com?Action=DescribeDomainConfigs&DomainName=test.com
&ConfigList="cache_expired,cc,page_compress"
&<公共请求参数>
{
"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": "http://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":"http://test.com"
},
"RedirectTypeConfig": {
"RedirectType": "Https"
},
},
"RequestId": "67E027D8-7A58-4599-B17A-63E9A54FC54F"
}
<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>http://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>
版权声明:本文内容由阿里云实名注册用户自发贡献,版权归原作者所有,阿里云开发者社区不拥有其著作权,亦不承担相应法律责任。具体规则请查看《阿里云开发者社区用户服务协议》和《阿里云开发者社区知识产权保护指引》。如果您发现本社区中有涉嫌抄袭的内容,填写侵权投诉表单进行举报,一经查实,本社区将立刻删除涉嫌侵权内容。