日志接口
更新时间:2023-05-16
获取访问日志
def test_get_domain_log(self):
"""
test_get_domain_log
"""
error = None
try:
response = self.cdn_client.get_domain_log(
domain = 'opencdn3.sys-qa.com',
startTime = '2017-01-18T10:00:00Z',
endTime = '2017-01-18T12:50:00Z')
print response
except BceServerError as e:
error = e
finally:
self.assertIsNone(error)
获取多个域名日志
def test_get_log_list(c):
"""
get log list
"""
log = { "type":2,
"domains":["test-sdk.sys-qa.com"],
"startTime":"2019-03-04T00:00:00Z",
"endTime":"2019-03-04T23:00:00Z",
"pageNo":1,
"pageSize":1000
}
response = c.get_log_list(log)
print(response)