WEB应用防火墙
查询WAF历史域名。
Open API在线调试功能提供可视化界面在线调试API、支持生成代码示例、快速检索查看API文档等能力。前往调试
参数名称 | 类型 | 必填 | 描述 |
---|---|---|---|
startTime | String | 是 | 开始时间,yyyy-MM-dd HH:mm:ss。 |
endTime | String | 是 | 结束时间,yyyy-MM-dd HH:mm:ss。 |
timeZone | String | 否 | 时区,默认GMT+8,即“GMT+8”。 |
参数名称 | 类型 | 描述 |
---|---|---|
code | String | 0状态码表示请求成功,其他状态码说明请参见《错误码》。 |
message | String | 错误信息或Success。 |
data | List | 返回值。 |
错误代码(code) | 描述(message) | HTTP状态码 | 语义 |
---|---|---|---|
22992000 | ERROR_SYSTEM | 200 | 系统错误 |
22992001 | ERROR_PARAM | 200 | 参数错误 |
22992002 | ERROR_HEADER | 200 | 请求头参数错误 |
22992003 | ERROR_ZONE | 200 | 时区参数异常,请以GMT开头 |
22992004 | ERROR_TIME_ZONE | 200 | 时区转换异常 |
#!/bin/bash username="example_username" # Note that this must be a single quote to avoid the special $ character apiKey='example_apiKey' date=`env LANG="en_US.UTF-8" date -u "+%a, %d %b %Y %H:%M:%S GMT"` password=`echo -en "$date" | openssl dgst -sha1 -hmac $apiKey -binary | openssl enc -base64` curl -i --url "https://open.chinanetcenter.com/api/waf/report/query-waf-history-domain-list" \ -X "POST" \ -u "$username:$password" \ -H "Date: $date" \ -H 'Accept: application/json' \ -H 'Content-Type: application/json' \ -d '{ "startTime":"2021-09-06 00:00:00", "endTime":"2021-10-05 00:00:00", "timeZone":"GMT+8" }'
{ "code": "0", "message": "Success", "data": [ "waftest-wangsu.test.cn" ] }