BatchSetScdnDomainConfigs_安全加速 SCDN_API文档

插件下载了解更多
VS Code 插件
安装插件之前,确保已安装 VS Code安装插件之前,确保已安装 VS Code
Alibaba Cloud Developer Toolkit is a collection of extensions that can help access Alibaba Cloud services in Visual Studio Code.
JetBrains 插件
安装插件之前,确保已安装 JetBrains IDE安装插件之前,确保已安装 JetBrains IDE
The Alibaba Cloud Developer Toolkit for JetBrains makes it easier to access Alibaba Cloud services.

流控信息

当前云产品API请求速率暂未透出。

授权信息

如下是此API对应的授权信息,用于RAM权限策略语句的Action元素中,为RAM用户或RAM角色授予调用此API的权限。请通过 RAM 访问控制设置,使用方法可参考访问控制帮助文档

具体说明如下:展开详情

操作访问级别资源类型条件关键字关联操作
scdn:BatchSetScdnDomainConfigs
Update
全部资源
*

请求参数

字段名称字段详情
DomainNamesstring

加速域名,多个使用半角逗号(,)分隔。

示例值:example.com,aliyundoc.com参考取值来源:
    DescribeScdnDomainPvData
Functionsstring

功能列表。

示例值:[{"functionArgs":[{"argName":"domain_name","argValue":"example.com"}],"functionName":"set_req_host_header"}]

请求说明

Functions 格式:

  • [{"functionArgs":[{"argName":"domain_name","argValue":"example.com"}],"functionName":"set_req_host_header"}]
  • 某些功能,如 filetype_based_ttl_set,可以设置多条记录,当需要更新其中某条记录时,可通过该条记录的 configId 来指定。[{"functionArgs":[{"argName":"file_type","argValue":"jpg"},{"argName":"ttl","argValue":"18"}],"functionName":"filetype_based_ttl_set","configId":5068995}]

功能说明

所有参数值均按照字符串类型处理。

名称说明
referer_white_list_setrefer 白名单
referer_black_list_setrefer 黑名单
filetype_based_ttl_set文件过期时间设置
path_based_ttl_set目录过期时间设置
cc_defense防频次攻击
oss_authOSS 鉴权 Bucket
ip_black_list_setIP 黑名单
ip_white_list_setIP 白名单
error_page错误页面重定向
tesla页面优化加速
set_req_host_header修改回源自定义头
set_hashkey_args忽略 URL 参数
aliauth阿里鉴权
set_resp_header设置响应头(浏览器端可见)
video_seek视频切片拖拽开关
rangeRange 请求功能
gzip页面 Gzip 优化
https_force强制 HTTPS 跳转
http_force强制 HTTP 跳转
alilive视频直播配置
forward_scheme自适应回源
tmd_signatureTaobao Missile Defense(一种防 CC 攻击的安全功能)自定义规则

返回参数

字段名称字段详情
RequestIdstring

请求 ID。

示例值:04F0F334-1335-436C-A1D7-6C044FE73368
DomainConfigListobject

返回示例

错误码

全局错误码
HTTP 状态码错误码错误信息操作
400
InvalidFunctions.Malformed
Specified Functions is malformed.诊断
400
InvalidArgValue.Malformed
Specified ArgValue is malformed.诊断
400
Invalid%s.ValueNotSupported
FunctionName [%s] is not supported.诊断
400
Invalid%s.Malformed
ArgValue [%s] is malformed.诊断
400
TooManyDomains
The count of domain is over 50.诊断
400
MissingParameter%s
The specified value of ArgName[%s] is missing.诊断
400
MissingParameter
The specified ArgValue is missing.诊断
400
InvalidHeaderKey.ValueNotSupported
The specified value of parameter HeaderKey is not supported.诊断

变更历史

暂无变更历史

相关示例