描述
查询域名配置,一次可查询多个功能配置。
请求参数
参数名 |
类型 |
是否必须 |
说明 |
Action |
String |
是 |
操作接口名,系统规定参数。 取值:DescribeDcdnDomainConfigs |
DomainName |
String |
是 |
您的加速域名。 |
FunctionNames |
String |
否 |
功能列表名称,用逗号分隔。 |
功能说明
名称 |
说明 |
referer_white_list_set |
refer白名单 |
referer_black_list_set |
refer黑名单 |
filetype_based_ttl_set |
文件过期时间设置 |
path_based_ttl_set |
目录过期时间设置 |
cc_defense |
防CC攻击 |
oss_auth |
OSS鉴权Bucket |
ip_black_list_set |
IP黑名单 |
ip_white_list_set |
IP白名单 |
error_page |
错误页面重定向 |
tesla |
页面优化加速 |
set_req_host_header |
修改回源自定义头 |
set_hashkey_args |
忽略url参数 |
aliauth |
阿里鉴权 |
set_resp_header |
设置响应头(浏览器端可见) |
video_seek |
视频切片拖拽开关 |
range |
Range请求功能 |
gzip |
页面Gzip优化 |
https_force |
强制HTTPS跳转 |
http_force |
强制HTTP跳转 |
alilive |
视频直播配置 |
forward_scheme |
自适应回源 |
tmd_signature |
TMD自定义规则 |
返回参数
名称 |
类型 |
描述 |
RequestId |
String |
该条任务请求Id |
DomainConfigs |
DomainConfig[] |
域名配置 |
DomainConfig
名称 |
类型 |
描述 |
FunctionName |
String |
function名称 |
Status |
String |
状态,包括success,testing,failed,configuring |
ConfigId |
String |
配置id |
FunctionArgs |
FunctionArg[] |
各个function |
FunctionArg
名称 |
类型 |
描述 |
ArgName |
String |
配置名称 |
ArgValue |
String |
配置值 |
示例
请求示例
http://dcdn.aliyuncs.com/?Action=DescribeDcdnDomainConfigs
&DomainName=example.com
&FunctionNames=filetype_based_ttl_set,set_req_host_header
&<公共请求参数>
返回示例
JSON 格式
{
"RequestId": "F8AA0364-0FDB-4AD5-AC74-D69FAB8924ED",
"DomainConfigs": {
"DomainConfig": [
{
"FunctionArgs": {
"FunctionArg": [
{
"ArgName": "domain_name",
"ArgValue": "testdcdn3.cdnpe.com"
}
]
},
"ConfigId": 5003576,
"FunctionName": "set_req_host_header"
},
{
"FunctionArgs": {
"FunctionArg": [
{
"ArgName": "file_type",
"ArgValue": "txt"
},
{
"ArgName": "ttl",
"ArgValue": "13"
},
{
"ArgName": "weight",
"ArgValue": "8"
}
]
},
"ConfigId": 5068995,
"FunctionName": "filetype_based_ttl_set"
}
]
}
}
特殊错误码
错误代码 |
描述 |
Http 状态码 |
语义 |
DeleteFunctionFailed |
Batch delete functions failed. |
400 |
批量删除配置失败 |
InvalidFunctionName.ValueNotSupported |
FunctionName %s is not supported. |
400 |
不支持的FunctionName %s(%s为具体功能名) |
在文档使用中是否遇到以下问题
更多建议
匿名提交