获取网站列表
GET /sites
获取网站列表
请求
请求方式
GET
请求头
请求头
请求内容
说明
api-key
api_key
api_key
api-secret
api_secret
api_secret
参数类型
Query String
请求参数说明
字段名
字段类型
是否必填
字段说明
site_id
int
网站ID
page
int
页数
limit
int
每页显示数
domain
str
域名
backend_ip
str
源服务器IP
group
int
网站组ID
id
int
网站ID
user_package
int
网站套餐ID
http_listen_port
int
HTTP监听端口
https_listen_port
int
HTTPS监听端口
https_enable
int
HTTPS启用(1是/0否)
enable
int
站点启用(1是/0否)
state
int
站点状态(200正常/514锁定/513流量超限/512套餐过期)
调用示例
curl "/sites?page=1&limit=10" -H "api-key:xxxxxxx" -H "api-secret:xxxxxxx"
响应
响应示例
{
  "code": 0,
  "count": 3,
  "data": [
    {
      "acl": null,
      "acme_proxy_to_orgin": 0,
      "backend": "[{\"state\": \"up\", \"addr\": \"1.1.1.1\", \"weight\": 1}]",
      "backend_host": "$host",
      "backend_http_port": "80 80",
      "backend_https_port": "443",
      "backend_port_mapping": 0,
      "backend_protocol": "http",
      "backup_node_group": 33,
      "backup_node_group_name": "112",
      "balance_way": "rr",
      "black_ip": "",
      "block_proxy": 0,
      "block_region": "",
      "cc_default_rule": 10002,
      "cc_switch": "{}",
      "cname_domain": "xxxxxx-u.funnullv11.com",
      "cname_hostname": "5sku98dt",
      "cname_hostname2": "",
      "cname_mode": "site",
      "cname_state": "done",
      "cname_task_id": 18362859,
      "cors": "{\"allow_origin\": \"*\", \"allow_methods\": \"GET POST OPTIONS\", \"enable\": 0, \"allow_headers\": \"DNT Keep-Alive User-Agent X-Requested-With If-Modified-Since Cache-Control Content-Type\", \"max_age\": \"1728000\", \"expose_headers\": \"Content-Length Content-Range\", \"allow_credentials\": 1}",
      "create_at": null,
      "create_at2": "2022-02-28 12:17:40",
      "domain": "xxx.funnullv11.com",
      "enable": 1,
      "enable_backup_group": 1,
      "extra_cc_rule": "[]",
      "gzip_enable": 1,
      "gzip_types": "text/plain text/css text/xml text/javascript application/javascript application/x-javascript application/json",
      "health_check": "{\"enable\": false, \"protocol\": \"http\", \"status_code\": \"200 301 302\", \"interval\": 10, \"host\": \"xp.funnullv11.com\", \"path\": \"/\"}",
      "hotlink": "{\"domain\": \"\", \"enable\": 0, \"allow_empty\": true}",
      "http_listen": "{\"port\": \"80 88\"}",
      "https_listen": "{}",
      "id": 572,
      "mixed_ip_url_rule": null,
      "name": "jason",
      "node_group_id": 40,
      "node_group_name": "a23",
      "package_id": 1,
      "package_name": "test529",
      "page_404": "",
      "page_50x": "",
      "proxy_cache": "[]",
      "proxy_http_version": "1.0",
      "proxy_timeout": "60",
      "range": 0,
      "record_id": null,
      "region_id": 3,
      "region_name": "122",
      "req_header": "[]",
      "resp_header": "[]",
      "s.cname_domain": "xxxxxxx-u.funnullv11.com",
      "s.cname_hostname": "5sku98dt",
      "s.cname_hostname2": "",
      "s.cname_mode": "site",
      "s.xss_sql_data_str": "if ($query_string ~* (insert|select|delete|update|count|master|truncate|declare|exec|\\*|')(.*)$ ) { return 403; }",
      "s.xss_sql_enable": 0,
      "site_state": "200",
      "spider_allow": "baidu|sogou|sm|bing|google|toutiao|360spider",
      "state": "200",
      "sync_state": "done",
      "task_id": 18444870,
      "uid": 2,
      "up_cname_domain": "funnullv11.com",
      "up_cname_hostname": "mct3b28d-u",
      "up_cname_hostname2": "",
      "update_at": null,
      "update_at2": "2022-03-27 10:16:18",
      "ups_keepalive": 0,
      "ups_keepalive_conn": 5,
      "ups_keepalive_timeout": 60,
      "url_rewrite": "[]",
      "user_package": 30,
      "version": 21,
      "websocket_enable": 0,
      "white_ip": "",
      "xss_sql_data_str": "if ($query_string ~* (insert|select|delete|update|count|master|truncate|declare|exec|\\*|')(.*)$ ) { return 403; }",
      "xss_sql_enable": 0
    }
  ]
}
响应参数说明
字段名
字段说明
code
状态码(0正常)
count
总数
data
数据
data.acl
ACL规则
data.acme_proxy_to_orgin
其他
data.backend
源站列表
data.backend_host
回源域名($host 访问域名|$host:$server_port 访问域名:访问端口|)
data.backend_http_port
http回源端口
data.backend_https_port
https回源端口
data.backend_port_mapping
回源端口映射
data.backend_protocol
回源协议(http|https|follow)
data.backup_node_group
线路分组id
data.backup_node_group_name
线路分组
data.balance_way
负载方式(ip_hash|rr 轮询|url_hash|least_conn 最少连接数|random 随机)
data.black_ip
黑名单
data.block_proxy
透明代理
data.block_region
屏蔽区域
data.cc_default_rule
CC防护
data.cc_switch
自动提升防护等级
data.cname_domain
CNAME后缀
data.cname_hostname
CNAME主机头
data.cname_hostname2
CNAME主机头
data.cname_mode
CNAME模式
data.cname_state
CNAME
data.cname_task_id
CNAME任务ID
data.cors
跨域访问
data.create_at
创建
data.create_at2
创建时间
data.domain
域名
data.enable
是否启用
data.enable_backup_group
线路组启用
data.extra_cc_rule
线路组启用
data.gzip_enable
压缩
data.gzip_types
压缩类型
data.health_check
健康检查
data.hotlink
防盗链
data.http_listen
http监听端口
data.https_listen
https监听端口
data.id
网站ID
data.mixed_ip_url_rule
IP和URL组合防御
data.name
名称
data.node_group_id
节点分组ID
data.node_group_name
节点分组名
data.package_id
套餐ID
data.package_name
套餐名称
data.page_50x
套餐名称
data.page_50x
错误页面配置 50x页面
data.page_404
错误页面配置 404页面
data.proxy_cache
缓存
data.proxy_http_version
缓存版本
data.proxy_timeout
缓存超时
data.range
Range回源
data.record_id
记录ID
data.region_id
区域ID
data.req_header
源战请求头
data.resp_header
CDN响应头
data.s.cname_domain
CNAME
data.s.cname_hostname
CNAME主机头
data.s.cname_hostname2
CNAME主机头
data.s.cname_mode
CNAME模式
data.s.xss_sql_data_str
XSS/SQL防御
data.s.xss_sql_enable
XSS/SQL防御
data.site_state
站点状态
data.spider_allow
允许爬虫
data.state
配置同步
data.sync_state
配置同步
data.task_id
任务ID
data.uid
uid
data.up_cname_domain
CNAME
data.up_cname_hostname
CNAME
data.up_cname_hostname2
CNAME
data.update_at
update
data.update_at2
update
data.ups_keepalive
回源长链接
data.ups_keepalive_conn
最大空闲连接数
data.ups_keepalive_timeout
空闲连接的超时时间
data.url_rewrite
URL转向
data.user_package
套餐
data.user_package
套餐
data.version
版本
data.websocket_enable
websocket
data.white_ip
白名单
data.xss_sql_data_str
XXS/SQL防御
data.xss_sql_enable
XXS/SQL防御