文档
测试

子域名详情

GET
http:/domain/api/front/host/detail/{id}

请求头

参数名
类型
描述
必填
Content-Type:application/json
sring
必填
Authorization
string
例如:Bearer token值
必填

请求参数

参数名
类型
描述
必填
id
int
子域名id
可选

响应参数

参数名
类型
描述
必填
id
int
子域名id
必填
pid
int
产品id
必填
host
string
子域名
必填
sub_host
string
主域名
必填
servicePort
string
开站端口
必填
scheme
string
目标类型 http,https,ws,wss
必填
max_fail
int
失败重试次数
必填
timeout
int
重试超时
必填
states
int
域名状态 0-停用 1-启用
必填
districts_states
int
开启地区屏蔽 0-关闭 1-开启
必填
host_json_server
json
域名配置信息,同步服务端
必填

说明 / 示例

返回参数示例: ``` { "code": 1, "msg": "success", "data": { "id": 7498, "pid": 2, "host": "test.baidu.com", "sub_host": "baidu.com", "servicePort": "", "scheme": "http,ws,https,wss", "max_fail": 0, "timeout": 0, "states": 1, "districts_states": 0, "host_json_server": "{\"appid\":\"app66458\",\"balancer\":\"normal\",\"scheme\":\"http,ws,https,wss\",\"redirect\":0,\"host\":\"test.baidu.com\",\"kpAddHost\":true,\"kpHost\":\"test.baidu.com\",\"upstreams\":[{\"isSSL\":false,\"port\":\"84\",\"widget\":1,\"addr\":\"47.75.9.94\",\"max_fail\":0,\"timeout\":0}],\"security\":{\"jsKey\":\"137fdbc433b9d81d2161c3ce4dc9ca5c8c04ec87\",\"cookiesKey\":\"adcf2bd6cb724f80facde6087981877630b6bcec\",\"useCaptcha\":1,\"forceClose\":1,\"stopWaf\":true,\"guardlevel\":2,\"clearPath\":true,\"badReqOnSec\":100,\"STBadReqOnSec\":500},\"openKeepalive\":false,\"cache\":{\"bigFSFiles\":[{\"host\":[\"test.baidu.com\"],\"urlPath\":\"57m.ipa\",\"preload\":true,\"preloadTicker\":5,\"preloadUrl\":\"\"}],\"preloadNodes\":[\"node_1000017_47.244.161.118\"],\"cacheType\":\"\\\\.(js|css|png|jpg|ipa)$\"},\"lockHttps\":true}", "created_at": "2020-08-18 14:33:22" } } ```