{
"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"
}curl --location --request POST 'https://api.v2.rainyun.com/product/rcdn/instance//setting' \
--header 'x-api-key;' \
--header 'rain-dev-token: {{rain-dev-token}}' \
--header 'Content-Type: application/json' \
--data-raw '{
"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"
}'{}