跳到主要内容
版本:latest

get_domain_list

获取站点的所有绑定域名及其健康状态、HTTPS 端口信息。

  • 路由POST /mod/proxy/com/get_domain_list/stype
  • actionget_domain_list

输入参数

参数名称必选类型描述
idint站点 ID
site_namestring站点名称

输出参数

参数名称类型描述
domain_listlist域名列表,每项含 name, port,healthy=0 表示域名不在 JSON 配置中
https_portstringHTTPS 端口号,未开启 SSL 时返回 未开启HTTPS

示例

响应

{
"status": true,
"data": {
"domain_list": [
{"name": "example.com", "port": 80, "healthy": 1},
{"name": "www.example.com", "port": 80, "healthy": 1}
],
"https_port": "443"
}
}