查询防护域名
功能介绍
查询某个防护域名的详细信息。
URI
请求消息
请求参数
无
响应消息
|
名称 |
参数类型 |
说明 |
|---|---|---|
|
id |
String |
防护实例的ID。 |
|
hostname |
String |
域名。 |
|
cname |
String |
CNAME的值,例如:efec1196267b41c399f2980ea4048517.waf.cloud.com。 |
|
txt_code |
String |
TXT记录。当“proxy”为“true”时,才会返回“txt_code”。 |
|
sub_domain |
String |
子域名。当“proxy”为“true”时,才返回“sub_domain”。 |
|
policy_id |
String |
policy的ID。 |
|
protect_status |
Integer |
防护状态。
|
|
access_status |
Integer |
接入状态。
|
|
protocol |
String |
协议类型,取值范围为:“HTTP”,“HTTPS”和“HTTP,HTTPS”。 |
|
certificate_id |
String |
证书ID,只有当“client_protocol”为“HTTPS”时,才会返回该值。 |
|
server |
Array |
源站信息列表,包含“client_protocol”、“server_protocol”、“address”、“port”四个字段。
|
|
proxy |
Boolean |
是否使用代理。
|
|
sip_header_name |
String |
获取真实源IP的http请求头的类别。当“proxy”为“true”时,才会返回该值。 取值范围为:“default”,“cloudflare”,“akamai”,“custom”。 |
|
sip_header_list |
Array |
获取真实源IP的http请求头。当“proxy”为“true”时,才会返回该值。
|
|
timestamp |
Long |
创建防护域名的时间。 |
|
block_page |
BlockPage object |
告警页面配置 |
|
参数 |
参数类型 |
描述 |
|---|---|---|
|
template |
String |
模板名称 |
|
custom_page |
CustomPage object |
自定义告警页面 |
|
redirect_url |
String |
页面URL |
示例
如下以查询防护域名www.a.com为例。
{
"id": "388a7789d55b41d1918b3088a8f1e7f3",
"hostname": "www.a.com",
"cname": "3249d21e5eb34d21be12fdc817fcb67d.waf.cloud.com",
"txt_code": "3249d21e5eb34d21be12fdc817fcb67d",
"sub_domain": "3249d21e5eb34d21be12fdc817fcb67d.www.a.com",
"policy_id": "xxxxxxxxxxxxxx",
"certificate_id": "xxxxxxxxxxxxxxxxxxx",
"protect_status": 0,
"access_status": 0,
"protocol": "HTTP,HTTPS",
"server": [
{"client_protocol": "HTTPS", "server_protocol":"HTTP", "address":"X.X.X.X.", "port":443},
{"client_protocol": "HTTP", "server_protocol":"HTTP", "address":"X.X.X.X", "port":80}
],
"proxy": true,
"sip_header_name": "default",
"sip_header_list": ["X-Forwarded-For"],
"timestamp": 1499817600
"block_page" : {
"template" : "default"
},
}