RCDN实例设置
POST
/product/rcdn/instance/{id}/setting最后修改时间: 1 个月前
请求参数
Path 参数
id
integer
实例ID
Body 参数application/json
as_default
boolean
可选
作为域名配置的默认值保存到实例
config
object (rcdnM.DomainConfig)
必需
acl_config
object (rcdnM.AclConfig)
可选
baseConfig
object (rcdnM.BaseConfig)
可选
cache_configs
array[object (rcdnM.CacheConfig) {12}]
白山特有(暂时)
origin_headers
array [object {1}]
可选
回源头 add_back_source_head:[{head_name:?,head_value:?,write_when_exists:yes/no}]
origin_host
string
回源host
resp_config
array[object (rcdnM.RespConfigList) {4}]
可选
resp_remove_list
array[string]
要删除的响应头
speed_limits
array[object (rcdnM.SpeedLimit) {5}]
白山特有
ssl_config
object (rcdnM.SSLConfig)
可选
wafConfig
object
雨云cc防火墙配置
domains
array[string]
要设置配置的域名
type
enum<string>
必需
枚举值:
httpsspeed_limituser_agentcache_rule_listadd_back_source_headadd_response_headip_black_listrefererorigin_hostorigindel_back_source_headdel_ip_blackdel_uadel_refererremove_response_headreset_response_headdel_response_headwaf
示例
{
"as_default": true,
"config": {
"acl_config": {
"ip_black_list": [
"string"
],
"ip_black_mode": "black",
"referer_allow_empty": true,
"referer_list": [
"string"
],
"referer_mode": "black",
"ua_allow_empty": true,
"ua_list": [
"string"
],
"ua_mode": "black"
},
"baseConfig": {
"default_master": [
"string"
],
"default_slave": [
"string"
],
"origin_mode": "string",
"origin_port": 0
},
"cache_configs": [
{
"case_ignore": "yes",
"expire": 0,
"expire_unit": "Y",
"follow_expired": "yes",
"ignore_no_cache_headers": "yes",
"match_method": "all",
"params": "string",
"pattern": "string",
"priority": 0,
"query_params_op": "do_nothing",
"query_params_op_way": "remove",
"query_params_op_when": "cache_back_source"
}
],
"origin_headers": [
{
"property1": "string",
"property2": "string"
}
],
"origin_host": "string",
"resp_config": [
{
"cover": "on",
"name": "string",
"only_hit": "on",
"value": "string"
}
],
"resp_remove_list": [
"string"
],
"speed_limits": [
{
"begin_time": "string",
"end_time": "string",
"match_type": "all",
"pattern": "string",
"speed": 0
}
],
"ssl_config": {
"cert_id": 0,
"force_ssl": true
},
"wafConfig": {
"aboard_defence": true,
"active_bandwidth": 100,
"active_burst_bandwidth": 100,
"active_error_rate": 100,
"active_minute": 0,
"active_request": 10,
"active_time": 600,
"always_check": true,
"block_time": 60,
"defence_cache_dir": "string",
"defence_mode": "rain",
"ext_change_to": "string",
"global_burst_mps": 0,
"global_burst_qps": 0,
"global_mps": 0,
"global_qps": 0,
"js_check": true,
"per_ip_burst_mps": 0,
"per_ip_burst_qps": 0,
"per_ip_mps": 0,
"per_ip_qps": 0,
"stop_cdn": true
}
},
"domains": [
"string"
],
"type": "https"
}
示例代码
返回响应
成功(200)
HTTP 状态码: 200
内容格式: JSONapplication/json
数据结构
object {0}
示例
{}
最后修改时间: 1 个月前