查询域名接入详情。
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。

授权信息
操作 |
访问级别 |
资源类型 |
条件关键字 |
关联操作 |
yundun-waf:DescribeDomainDetail |
get |
*全部资源
|
无 | 无 |
请求参数
名称 |
类型 |
必填 |
描述 |
示例值 |
InstanceId |
string |
是 |
WAF 实例的 ID。 说明
您可以调用 DescribeInstance 查询当前 WAF 实例的 ID。 |
waf_cdnsdf3**** |
Domain |
string |
是 |
要查询的域名名称。 |
www.aliyundoc.com |
RegionId |
string |
否 |
WAF 实例所属地域。取值:
|
cn-hangzhou |
返回参数
名称 |
类型 |
描述 |
示例值 |
object |
CNAME 详情。 |
||
RequestId |
string |
请求 ID。 |
BAEF9CA9-66A0-533E-BD09-5D5D7AA8**** |
Domain |
string |
域名 |
www.aliyundoc.com |
Status |
integer |
域名状态。取值:
|
1 |
Cname |
string |
WAF 为域名分配的 CNAME 地址。 |
xxxxxcvdaf.****.com |
Listen |
object |
配置监听信息。 |
|
HttpPorts |
array |
HTTP 协议的监听端口。 |
|
integer |
HTTP 协议的监听端口。 |
80 |
|
HttpsPorts |
array |
HTTPS 协议的监听端口。 |
|
integer |
HTTPS 协议的监听端口。 |
443 |
|
Http2Enabled |
boolean |
是否开启 HTTP2。取值:
|
true |
CertId |
integer |
证书的 ID。 |
123 |
TLSVersion |
string |
TLS 的版本。取值:
|
tlsv1.2 |
EnableTLSv3 |
boolean |
是否支持 TLS1.3 版本。取值:
|
true |
CipherSuite |
integer |
加密套件类型。取值:
|
2 |
CustomCiphers |
array |
自定义加密套件。 |
|
string |
自定义加密套件。 |
xxx |
|
FocusHttps |
boolean |
是否开启 HTTPS 的强制跳转。取值:
|
true |
SM2Enabled |
boolean |
是否开启国密证书。 取值:
|
true |
SM2CertId |
string |
要添加的国密证书的 ID。仅 SM2Enable 取值为 true 时,使用该参数。 |
123-cn-hangzhou |
SM2AccessOnly |
boolean |
是否仅客端访问。仅 SM2Enable 取值为 true 时,使用该参数。
|
true |
XffHeaderMode |
integer |
WAF 获取客户端真实 IP 的方式。取值:
|
2 |
XffHeaders |
array |
设置用于获取客户端 IP 的自定义字段列表。 |
|
string |
设置用于获取客户端 IP 的自定义字段列表。 |
Client-ip |
|
IPv6Enabled |
boolean |
是否开启 IPv6。取值:
|
true |
ProtectionResource |
string |
要使用的防护资源类型。取值:
|
share |
ExclusiveIp |
boolean |
是否开启独享 IP。取值:
|
true |
Redirect |
object |
配置转发信息。 |
|
Backends |
array |
域名对应的回源地址。 |
|
object |
源站服务器 IP 或服务器回源域名。 |
||
Backend |
string |
域名对应的源站服务器 IP 或服务器回源域名。 |
1.1.XX.XX |
Loadbalance |
string |
回源时采用的负载均衡算法。取值:
|
iphash |
FocusHttpBackend |
boolean |
是否开启强制 HTTP 回源。取值:
|
true |
SniEnabled |
boolean |
是否开启回源 SNI。取值:
|
true |
SniHost |
string |
设置自定义 SNI 扩展字段的值。 |
www.aliyundoc.com |
RequestHeaders |
array |
域名的流量标记字段和值,用于标记经过 WAF 处理的流量。 |
|
object |
域名的流量标记字段和值,用于标记经过 WAF 处理的流量。 |
||
Key |
string |
指定的自定义请求头部字段。 |
aaa |
Value |
string |
指定的自定义请求头部字段设定的值。 |
bbb |
ConnectTimeout |
integer |
连接超时时长。单位:秒。 取值范围:5~120。 |
120 |
WriteTimeout |
integer |
写超时时长,单位:秒。 取值范围:5~1800。 |
200 |
ReadTimeout |
integer |
读超时时长,单位:秒。 取值范围:5~1800。 |
200 |
Keepalive |
boolean |
是否保持长连接。取值:
|
true |
Retry |
boolean |
WAF 回源失败时,是否重试。取值:
|
true |
KeepaliveRequests |
integer |
复用长连接的请求个数。取值范围:60~1000,单位:个。 说明
开启长连接后,复用多少个长连接。 |
1000 |
KeepaliveTimeout |
integer |
空闲长连接超时时间,取值范围:1~60,默认 15,单位:秒。 说明
复用的长连接空闲多长时间后释放。 |
15 |
XffProto |
boolean |
X-Forward-For-Proto 传递 WAF 的协议。取值:
|
true |
BackupBackends |
array |
域名对应的备用回源地址。 |
|
object |
源站服务器 IP 或服务器回源域名。 |
||
Backend |
string |
域名对应的备用源站服务器 IP 或服务器回源域名。 |
[ "1.1.XX.XX", "2.2.XX.XX" ] |
ResourceManagerResourceGroupId |
string |
阿里云资源组 ID。 |
rg-acfm***q |
CertDetail |
object |
SSL 证书详情。 |
|
Name |
string |
证书名称 |
test-cert-name |
Id |
string |
SSL 证书 ID |
123-cn-hangzhou |
StartTime |
integer |
证书生效时间,格式为 Unix 时间戳(UTC 时间),单位为毫秒。 |
1677772800000 |
EndTime |
integer |
证书到期时间,格式为 Unix 时间戳(UTC 时间),单位为毫秒。 |
1685590400000 |
CommonName |
string |
通用名称(CN) |
test.aliyundoc.com |
Sans |
array |
证书绑定的所有域名。 |
|
string |
证书绑定的所有域名。 |
www.aliyundoc.com |
|
SM2CertDetail |
object |
国密证书信息 |
|
Name |
string |
证书名称 |
test-sm2-cert-name |
Id |
string |
SSL 证书 ID |
123-cn-hangzhou |
StartTime |
integer |
证书生效时间,格式为 Unix 时间戳(UTC 时间),单位为毫秒。 |
1657551525000 |
EndTime |
integer |
证书到期时间,格式为 Unix 时间戳(UTC 时间),单位为毫秒。 |
1665590400000 |
CommonName |
string |
通用名称(CN) |
test.aliyundoc.com |
Sans |
array |
证书绑定的所有域名。 |
|
string |
证书绑定的所有域名。 |
www.aliyundoc.com |
示例
正常返回示例
JSON
格式
{
"RequestId": "BAEF9CA9-66A0-533E-BD09-5D5D7AA8****",
"Domain": "www.aliyundoc.com",
"Status": 1,
"Cname": "xxxxxcvdaf.****.com",
"Listen": {
"HttpPorts": [
80
],
"HttpsPorts": [
443
],
"Http2Enabled": true,
"CertId": 123,
"TLSVersion": "tlsv1.2",
"EnableTLSv3": true,
"CipherSuite": 2,
"CustomCiphers": [
"xxx"
],
"FocusHttps": true,
"SM2Enabled": true,
"SM2CertId": "123-cn-hangzhou",
"SM2AccessOnly": true,
"XffHeaderMode": 2,
"XffHeaders": [
"Client-ip"
],
"IPv6Enabled": true,
"ProtectionResource": "share",
"ExclusiveIp": true
},
"Redirect": {
"Backends": [
{
"Backend": "1.1.XX.XX"
}
],
"Loadbalance": "iphash",
"FocusHttpBackend": true,
"SniEnabled": true,
"SniHost": "www.aliyundoc.com",
"RequestHeaders": [
{
"Key": "aaa",
"Value": "bbb"
}
],
"ConnectTimeout": 120,
"WriteTimeout": 200,
"ReadTimeout": 200,
"Keepalive": true,
"Retry": true,
"KeepaliveRequests": 1000,
"KeepaliveTimeout": 15,
"XffProto": true,
"BackupBackends": [
{
"Backend": "[\n \"1.1.XX.XX\",\n \"2.2.XX.XX\"\n]\n"
}
]
},
"ResourceManagerResourceGroupId": "rg-acfm***q",
"CertDetail": {
"Name": "test-cert-name",
"Id": "123-cn-hangzhou",
"StartTime": 1677772800000,
"EndTime": 1685590400000,
"CommonName": "test.aliyundoc.com",
"Sans": [
"www.aliyundoc.com"
]
},
"SM2CertDetail": {
"Name": "test-sm2-cert-name",
"Id": "123-cn-hangzhou",
"StartTime": 1657551525000,
"EndTime": 1665590400000,
"CommonName": "test.aliyundoc.com\n",
"Sans": [
"www.aliyundoc.com\n"
]
}
}
错误码
访问错误中心查看更多错误码。
变更历史
更多信息,参考变更详情。