1. 请求参数
字段 |
类型 |
是否必填 |
示例 |
描述 |
Action |
String |
是 |
DescribeCdnLogs |
公共参数,获取cdn日志,取值:DescribeCdnLogs |
StartTime |
String |
是 |
2022-04-27 00:00:00 |
查询起始时间,格式为: |
EndTime |
String |
是 |
2022-04-27 01:00:00 |
查询结束时间,格式为: |
DomainName |
String |
是 |
test.com |
查询域名,只支持一个域名 |
2. 返回参数
参数名称 |
类型 |
描述 |
CdnLogs |
Array of String |
cdn日志下载链接 |
3. 示例
3.1 请求示例
curl -X POST 'https://vod.streamlakeapi.com/?Action=DescribeCdnLogs' \
-H 'Content-Type: application/json' \
-d '{"StartTime":"2022-04-27 00:00:00","EndTime":"2022-04-27 01:00:00","DomainName":"test.com"}'
3.2 返回示例
HTTP/1.1 200 OK
Content-Type: application/json
{
"ResponseData": {
"CdnLogs": [
"https://s2-cdn-log.ssscdn.com/bs2/cdn-cdnlog-01/vdn5.vzuu.com/2022/04/27/00/10/test.com_2022_04_27_00_10.csv",
"https://s2-cdn-log.ssscdn.com/bs2/cdn-cdnlog-01/vdn5.vzuu.com/2022/04/27/00/11/test.com_2022_04_27_00_11.csv",
"https://s2-cdn-log.ssscdn.com/bs2/cdn-cdnlog-01/vdn5.vzuu.com/2022/04/27/00/12/test.com_2022_04_27_00_12.csv",
"https://s2-cdn-log.ssscdn.com/bs2/cdn-cdnlog-01/vdn5.vzuu.com/2022/04/27/00/13/test.com_2022_04_27_00_13.csv"
]
},
"ResponseMeta": {
"RequestId": "fwAAAWJ4gb8AAAAAAAAABw",
"ErrorMessage": "",
"ErrorCode": ""
}
}
4. 错误码
ErrorCode |
ErrorMessage |
说明 |
状态码 |
InvalidArgument.InvalidDomain |
Invalid cdn domain, failed to get cdn logs |
输入域名不合法,没有找到对应日志 |
400 |
InvalidArgument |
domain_name should not be empty |
输入域名不能为空 |
400 |
InvalidArgument |
params <用户输入的时间> invalid,<用户输入的时间>:2022-04-27 01:00 |
用户输入的时间不合法 |
400 |