- 鉴权说明
- API鉴权
- 域名操作
- 域名配置
- 查询域名源站GET
- 设置域名源站PUT
- 查询域名回源hostGET
- 设置域名回源hostPUT
- 查询域名HTTPSGET
- 设置域名HTTPSPUT
- 查询域名是否强制跳转HTTPSGET
- 设置域名强制跳转HTTPSPUT
- 查询域名智能压缩GET
- 设置域名智能压缩PUT
- 查询域名IPV6GET
- 设置域名IPV6PUT
- 查询域名HTTP响应头域GET
- 设置域名HTTP响应头域POST
- 查询域名IP 黑 白名单GET
- 设置域名IP黑白名单POST
- 查询域名Referer黑白名单GET
- 设置域名Referer黑白名单POST
- 查询域名UA黑白名单GET
- 设置域名UA黑白名单POST
- 查询域名回源协议GET
- 设置域名回源协议PUT
- 查询域名回源HTTP请求头GET
- 设置域名回源HTTP请求头POST
- 查询域名HTTP/2GET
- 设置域名HTTP/2PUT
- 查询域名HTTP/3GET
- 设置域名HTTP/3PUT
- 查询域名最低tls版本GET
- 设置域名最低tls版本PUT
- 查询域名回源超时时间(仅限AWS渠道)GET
- 设置域名回源超时时间(仅限AWS渠道)PUT
- 查询国家/地区数据(ISO)GET
- 查询域名区域访问控制(仅限AWS渠道)GET
- 设置域名区域访问控制(仅限AWS渠道)PUT
- 获取AWS缓存策略列表GET
- 查询域名缓存策略GET
- 设置域名缓存策略PUT
- 获取AWS回源请求头策略列表GET
- 获取AWS响应头策略列表GET
- 获取加速域名的AWS回源请求头策略(仅限AWS渠道)GET
- 设置加速域名的AWS回源请求头策略(仅限AWS渠道)PUT
- 获取加速域名的AWS响应头策略(仅限AWS渠道)GET
- 设置加速域名的AWS响应头策略(仅限AWS渠道)PUT
- 证书管理
- 内容管理
- 统计分析
- 日志管理
查询HTTP状态码请求数汇总
POST
/API/cdn/statistics/http/code
●支持90天内的数据查询, 大于等于起始时间(start_time),小于等于结束时间(end_time)
请求参数
Header 参数
Authorization
string
必需
默认值:
Bearer Af8VDldHtQxxxF4n=H8tLRl9Er7WdhaXvWWd/
Content-Type
string
json 类型
默认值:
application/json
Body 参数application/json
domain
string
可选
start_time
string
可选
end_time
string
可选
scope
string
可选
srv_type
string
可选
codes
string
可选
code
string
可选
is_protocol
string
可选
protocol
string
可选
示例
{
"domain": "testhw1.rgslb.link",
"scope": "month"
}
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://ctgcdn.esurfingcloud.com/API/cdn/statistics/http/code' \
--header 'Authorization;' \
--header 'Content-Type: application/json' \
--data-raw '{
"domain": "testhw1.rgslb.link",
"scope": "month"
}'
返回响应
🟢200成功
application/json
Body
code
integer
必需
message
string
返回信息
data
object
必需
2xx
array [object {2}]
可选
3xx
array [object {2}]
可选
5xx
array [object {2}]
可选
6xx
array [object {2}]
可选
report
array [object {3}]
必需
code
integer
状态码
req
integer
请求数(总数)
ratio
number
占比
示例
{
"code": 1,
"message": "OK",
"data": {
"2xx": [
{
"time": 1712799600,
"req": 62
},
{
"time": 1712911500,
"req": 86
}
],
"3xx": [
{
"time": 1712799600,
"req": 1
},
{
"time": 1713247200,
"req": 25
}
],
"5xx": [
{
"time": 1712911500,
"req": 1
}
],
"6xx": [
{
"time": 1712799600,
"req": 2
}
]
},
"report": [
{
"code": 200,
"req": 186,
"ratio": 54.55
},
{
"code": 304,
"req": 145,
"ratio": 42.52
},
{
"code": 206,
"req": 6,
"ratio": 1.76
},
{
"code": 611,
"req": 2,
"ratio": 0.59
},
{
"code": 301,
"req": 1,
"ratio": 0.29
},
{
"code": 504,
"req": 1,
"ratio": 0.29
}
]
}
修改于 2024-08-07 02:32:18