全局默认配置
开发中
开发环境
http://39.100.59.112:8000
开发环境
http://39.100.59.112:8000
POST
http://39.100.59.112:8000
《全局默认接口使用》 密码:gg4o
请求参数
Authorization
在 Header 添加参数
Authorization
,其值为在 Bearer 之后拼接 Token示例:
Authorization: Bearer ********************
Header 参数
Accept
string
必需
默认值:
application/json
Body 参数application/json
cache_config
object
必需
active
boolean
必需
cache_list
array [object {9}]
必需
white_url_ip
object
必需
active
boolean
必需
ip_list
array[string]
必需
black_url_ip
object
必需
active
boolean
必需
ip_list
array[string]
必需
cc_config
object
必需
site
object
必需
resuest_rate
object
必需
block_config
object
必需
active
boolean
必需
static_page_config
object
必需
contents
array [object {2}]
必需
error_page_config
object
必需
contents
array [object {2}]
必需
示例
{
"cache_config": {
"active": true,
"cache_list": [
{
"urlmode": "string",
"active": true,
"cachemode": "string",
"cacheextensions": "string",
"cachepath": "string",
"cachereg": "string",
"timeout": 0,
"weight": 0,
"cache_uuid": "string"
}
]
},
"white_url_ip": {
"active": true,
"ip_list": [
"string"
]
},
"black_url_ip": {
"active": true,
"ip_list": [
"string"
]
},
"cc_config": {
"site": {
"active": true,
"global_concurrent": 0,
"policy": "string",
"blockminutes": 0,
"waitseconds": 0,
"waitpolicyminutes": 0,
"redirectlocation": "string",
"redirectwaitseconds": 0,
"url_rates": [
{
"url": "string",
"rate": 0
}
]
},
"resuest_rate": {
"active": true,
"rate": 0,
"concurrency": 0,
"challengePolicy": "string",
"protectMinutes": 0,
"whiteMinutes": 0,
"challengeMethods": [
"string"
],
"challengeLimit": 0,
"blockMinutes": 0,
"excludeExt": "string",
"cookieName": "string",
"url_rates": [
{
"url": "string",
"rate": 0
}
]
},
"block_config": {
"block_active": true,
"block_time": 0,
"count": 0
},
"active": true
},
"static_page_config": {
"contents": [
{
"page_type": 0,
"content": "string"
}
]
},
"error_page_config": {
"contents": [
{
"page_type": 0,
"content": "string"
}
]
}
}
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST 'http://39.100.59.112:8000/default/domain/' \
--header 'Accept;' \
--header 'Content-Type: application/json' \
--data-raw '{
"cache_config": {
"active": true,
"cache_list": [
{
"urlmode": "string",
"active": true,
"cachemode": "string",
"cacheextensions": "string",
"cachepath": "string",
"cachereg": "string",
"timeout": 0,
"weight": 0,
"cache_uuid": "string"
}
]
},
"white_url_ip": {
"active": true,
"ip_list": [
"string"
]
},
"black_url_ip": {
"active": true,
"ip_list": [
"string"
]
},
"cc_config": {
"site": {
"active": true,
"global_concurrent": 0,
"policy": "string",
"blockminutes": 0,
"waitseconds": 0,
"waitpolicyminutes": 0,
"redirectlocation": "string",
"redirectwaitseconds": 0,
"url_rates": [
{
"url": "string",
"rate": 0
}
]
},
"resuest_rate": {
"active": true,
"rate": 0,
"concurrency": 0,
"challengePolicy": "string",
"protectMinutes": 0,
"whiteMinutes": 0,
"challengeMethods": [
"string"
],
"challengeLimit": 0,
"blockMinutes": 0,
"excludeExt": "string",
"cookieName": "string",
"url_rates": [
{
"url": "string",
"rate": 0
}
]
},
"block_config": {
"block_active": true,
"block_time": 0,
"count": 0
},
"active": true
},
"static_page_config": {
"contents": [
{
"page_type": 0,
"content": "string"
}
]
},
"error_page_config": {
"contents": [
{
"page_type": 0,
"content": "string"
}
]
}
}'
返回响应
🟢200成功
application/json
Body
cache_config
object
必需
active
boolean
必需
cache_list
array [object {8}]
必需
white_url_ip
object
必需
active
boolean
必需
ip_list
array[string]
必需
black_url_ip
object
必需
active
boolean
必需
ip_list
array[string]
必需
cc_config
object
必需
site
object
必需
resuest_rate
object
必需
block_congfig
object
必需
active
boolean
必需
static_page_config
object
必需
contents
array [object {2}]
必需
error_page_config
object
必需
contents
array [object {2}]
必需
示例
{
"cache_config": {
"active": true,
"cache_list": [
{
"urlmode": "string",
"cachemode": "string",
"cacheextensions": "string",
"cachepath": "string",
"cachereg": "string",
"timeout": 0,
"weight": 0,
"cache_uuid": "string"
}
]
},
"white_url_ip": {
"active": true,
"ip_list": [
"string"
]
},
"black_url_ip": {
"active": true,
"ip_list": [
"string"
]
},
"cc_config": {
"site": {
"active": true,
"global_concurrent": 0,
"policy": "string",
"blockminutes": 0,
"waitseconds": 0,
"waitpolicyminutes": 0,
"redirectlocation": "string",
"redirectwaitseconds": 0,
"url_rates": [
{
"url": "string",
"rate": 0
}
]
},
"resuest_rate": {
"active": true,
"rate": 0,
"concurrency": 0,
"challengePolicy": "string",
"protectMinutes": 0,
"whiteMinutes": 0,
"challengeMethods": [
"string"
],
"challengeLimit": 0,
"blockMinutes": 0,
"excludeExt": "string",
"cookieName": "string",
"url_rates": [
{
"url": "string",
"rate": 0
}
]
},
"block_congfig": {
"block_active": true,
"block_time": 0,
"count": 0
},
"active": true
},
"static_page_config": {
"contents": [
{
"page_type": 0,
"content": "string"
}
]
},
"error_page_config": {
"contents": [
{
"page_type": 0,
"content": "string"
}
]
}
}