- WAF功能
- 节点自动注册到后台
- 其它接口
- 接口更新日志
- AI接口
- 定制页面上传
- API完成情况
- UEBA参数文档
- 防火墙配置
- 节点、域名、缓存
- 接口认证
- 节点管理
- 单节点管理
- 多节点管理
- 单域名管理
- 多域名管理
- 域名日志开关【2024.06更新】
- 缓存配置
- 防火墙配置
- IP黑/白名单
- URL黑/白名单
- 防CC
- 防盗链
- 精准访问控制【2024.06更新】
- 区域访问限制
- APP专用防CC策略
- 内容安全风控:关键字【2024.06更新】
- 内容安全风控:图片
- 安全访问控制
- WAF功能
- 新WAF功能
- 防篡改
- 批量配置接口
- http防护【2024.05更新】
- 动态防护【2024.06更新】
- 资源访问控制【2024.06更新】
- bot防护【2024.06更新】
- api防护【2024.06更新】
- url统计模块【2024.06更新】
- api基线管理
- httpStream
- 蜜罐功能(新增)
- 证书管理
- 统计数据
- 其它
- 健康检查
- AI接口
- 接口认证
- 测试包
- UEBA【2024.06更新】
- UEBA2.0(2025.06新增)
- 【内部用】ip库管理【2024.06更新】
更新域名(20230611)
开发中
PUT
/domains
https://hostdefender.yuque.com/knysf0/fcdnsu/kq5e6uwye1bo0n9s?singleDoc#
密码:bqmt
请求参数
Authorization
在 Header 添加参数
Authorization
,其值为在 Bearer 之后拼接 Token示 例:
Authorization: Bearer ********************
Query 参数
custom_task_id
string
任务id
Header 参数
Accept
string
必需
默认值:
application/json
Body 参数application/json
data
array[object (域名信息(提交)) {7}]
必需
domain
string
加速域名
>= 1 字符<= 998 字符
domain_uuid
string
域名UUID
config_list
array [object {14}]
七层配置列表
primary_domain
string
主域名
domain_config
object
域名相关配置
nodes
array [object {3}]
节点列表
four_layers_config
array [object {13}]
四层转发配置
示例
{
"data": [
{
"domain": "string",
"domain_uuid": "string",
"config_list": [
{
"protocol": "string",
"h2": true,
"tls": "string",
"maxVersion": "string",
"minVersion": "string",
"port": 0,
"uri_forward": "string",
"redirect": true,
"overload_type": 0,
"overload_status_code": 0,
"overload_redirect_url": "string",
"load_balancing": 0,
"server": "string",
"source_addresses": [
{
"address": "string",
"protocol": "string",
"concurrent": 0,
"weight": 0,
"port": 0,
"sni": "string",
"interval": 0,
"timeout": 0,
"health_check_active": true,
"sourceHTTP2": true,
"httpKeepAlives": true
}
]
}
],
"primary_domain": "string",
"domain_config": {
"cache_total_size_limit": 0,
"cache_file_size_limit": 0
},
"nodes": [
{
"node_uuid": "string",
"priority": 0,
"node_type": "string"
}
],
"four_layers_config": [
{
"protocol": "string",
"tcp_version": 0,
"port": 0,
"max_connection": "string",
"new_connection": "string",
"load_balancing": "string",
"source_address": [
{
"address": "string",
"port": 0,
"weight": 0
}
],
"proxy_protocol": 0,
"rate_limit": 0,
"interval": 0,
"timeout": 0,
"recover_times": 0,
"health_check_active": true
}
]
}
]
}
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request PUT '/domains?custom_task_id=' \
--header 'Accept;' \
--header 'Content-Type: application/json' \
--data-raw '{
"data": [
{
"domain": "string",
"domain_uuid": "string",
"config_list": [
{
"protocol": "string",
"h2": true,
"tls": "string",
"maxVersion": "string",
"minVersion": "string",
"port": 0,
"uri_forward": "string",
"redirect": true,
"overload_type": 0,
"overload_status_code": 0,
"overload_redirect_url": "string",
"load_balancing": 0,
"server": "string",
"source_addresses": [
{
"address": "string",
"protocol": "string",
"concurrent": 0,
"weight": 0,
"port": 0,
"sni": "string",
"interval": 0,
"timeout": 0,
"health_check_active": true,
"sourceHTTP2": true,
"httpKeepAlives": true
}
]
}
],
"primary_domain": "string",
"domain_config": {
"cache_total_size_limit": 0,
"cache_file_size_limit": 0
},
"nodes": [
{
"node_uuid": "string",
"priority": 0,
"node_type": "string"
}
],
"four_layers_config": [
{
"protocol": "string",
"tcp_version": 0,
"port": 0,
"max_connection": "string",
"new_connection": "string",
"load_balancing": "string",
"source_address": [
{
"address": "string",
"port": 0,
"weight": 0
}
],
"proxy_protocol": 0,
"rate_limit": 0,
"interval": 0,
"timeout": 0,
"recover_times": 0,
"health_check_active": true
}
]
}
]
}'
返回响应
🟢200成功
application/json
Body
task_id
string
必需
示例
{
"task_id": "string"
}
修改于 2023-07-20 17:48:03