Skip to content

Commit c3f447f

Browse files
zhourongzhourong
authored andcommitted
增加日志下载接口功能
1 parent 5cdbd18 commit c3f447f

File tree

2 files changed

+69
-1
lines changed

2 files changed

+69
-1
lines changed

examples/cdn.py

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -625,7 +625,19 @@
625625
'''
626626
#res = client.get_live_top_online_user_data(StartTime='2016-11-19T08:00+0800',ResultType='1',Regions='CN',LimitN='100')
627627

628-
628+
'''
629+
get_domain_logs 日志下载接口
630+
631+
Parameters:
632+
PageSize long 分页大小,默认20,最大500,取值1~500间整数
633+
PageNumber long 取第几页。默认为1,取值1~10000
634+
DomainId string 按域名过滤,默认为空,代表当前用户下所有域名
635+
Time string 按域名状态过滤,默认为空,代表当前用户下所有域名状态全部
636+
637+
Returns:
638+
<type 'dict'>
639+
'''
640+
#res = client.get_domain_logs(PageSize=20,PageNumber=1,DomainId='2D09W48',Time='')
629641

630642

631643
#print '****************************cdn test*****************:'

kscore/data/cdn/2016-09-01/service-2.yaml

Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,16 @@ documentation: ''
1616

1717
operations:
1818

19+
GetDomainLogs:
20+
name: GetDomainLogs
21+
http:
22+
method: GET
23+
requestUri: /2016-09-01/log/GetDomainLogs
24+
input:
25+
shape: GetDomainLogsRequest
26+
output:
27+
shape: GetDomainLogsResponse
28+
1929
GetCdnDomains:
2030
name: GetCdnDomains
2131
http:
@@ -390,6 +400,52 @@ shapes:
390400
member:
391401
shape: Domain
392402

403+
GetDomainLogsRequest:
404+
type: structure
405+
required:
406+
- DomainId
407+
members:
408+
PageSize:
409+
shape: Long
410+
PageNumber:
411+
shape: Long
412+
DomainId:
413+
shape: String
414+
Time:
415+
shape: String
416+
417+
DomainLogData:
418+
type: structure
419+
members:
420+
StartTime:
421+
shape: String
422+
EndTime:
423+
shape: String
424+
LogName:
425+
shape: String
426+
LogUrl:
427+
shape: String
428+
LogSize:
429+
shape: Long
430+
DomainLogList:
431+
type: list
432+
member:
433+
shape: DomainLogData
434+
435+
GetDomainLogsResponse:
436+
type: structure
437+
members:
438+
PageNumber:
439+
shape: Long
440+
PageSize:
441+
shape: Long
442+
TotalCount:
443+
shape: Long
444+
DomainId:
445+
shape: String
446+
DomainLogs:
447+
shape: DomainLogList
448+
393449
GetCdnDomainsRequest:
394450
type: structure
395451
members:

0 commit comments

Comments
 (0)