DescribeCdnDomainLogs

Last Updated: Apr 03, 2018

Description

Obtain the download address for the original access log of the specified domain name.

Note: Log content is retained for a maximum of 1 year.

Request Parameters

Parameters Type Required Example values Description
Action String Yes DescribeCdnDomainLogs

The name of this interface. Value: DescribeCdnDomainLogs

DomainName String Yes www.yourdomain.com

Domain name (only supports single query).

EndTime String No 2017-12-22T08:00:00:00Z

  • End time must be later than start time.
  • The time nterval between start time and end time does not exceed oe year.
  • The date format adopts ISO8601 notation and uses the UTC time.
  • Example: 2016-10-20T04:00:00Z.

LogDay String No 2015-05-24

The day when the log is obtained.

  • Format: yyyy-MM-dd.
  • You can specify one of LogDay, StartTime and EndTime.
  • Default value: The current day.

PageNumber Long No 2

The page number.
Range value: any integer larger than 1.

PageSize Long No 300

Page size.

  • Maximum value: 1000
  • Range value: any integer between 1 and 1000.
  • Default value: 300

StartTime String No 2017-12-21T08:00:00:00Z

Start time when the log is obtained.

  • The date format adopts ISO8601 notation and uses the UTC time.
  • Example: 2016-10-20T04:00:00Z.

Return parameters

Parameters Type Example values Description
PageNumber Long 1

The page number of returned data.

PageSize Long 100

The page size.

TotalCount Long 3

Total number.

RequestId String 16A96B9A-F203-4EC5-8E43-CB92E68F4CD8

Request ID.

DomainLogModel

Log model.

  └DomainName String gc.ggter.com

Domain name.

  └DomainLogDetails

Data composed of DomainLogDetail.

    └LogPath String cdnlog.cn-hangzhou.oss.aliyun-inc.com/gc.ggter.com/2015_05_23/gc.ggter.com_2015_05_23_1100_1200.gz?OSSAccessKeyId\u003d3xmgf7JheOfOTUTf\u0026Expires\u003d1432539994\u0026Signature\u003d7Ly4ccKN3afzAGYyWDbxBcOcn2I%3D

Log path.

    └StartTime String 2017-12-21T08:00:00:00Z

Start time.

    └EndTime String 2017-12-22T08:00:00:00Z

End time.

    └LogSize Long 257

Log size.

    └LogName String gc.ggter.com_2015_05_23_1100_1200.gz

Log name.

Example

Request example

  1. https://cdn.aliyuncs.com?Action=DescribeCdnDomainLogs&DomainName=gc.ggter.com&LogDay=2015-05-24&<public request parameter>

Normal return example

JSON format

  1. {
  2. "DomainLogModel":{
  3. "DomainLogDetails":{
  4. "DomainLogDetail":[
  5. {
  6. "EndTime":"2015-05-23T04:00:00Z",
  7. "LogName":"gc.ggter.com_2015_05_23_1100_1200.gz",
  8. "LogPath":"cdnlog.cn-hangzhou.oss.aliyun-inc.com/gc.ggter.com/2015_05_23/gc.ggter.com_2015_05_23_1100_1200.gz?OSSAccessKeyId=3xmgf7JheOfOTUTf&Expires=1432539994&Signature=7Ly4ccKN3afzAGYyWDbxBcOcn2I%3D",
  9. "LogSize":257,
  10. "StartTime":"2015-05-23T03:00:00Z"
  11. },
  12. {
  13. "EndTime":"2015-05-23T08:00:00Z",
  14. "LogName":"gc.ggter.com_2015_05_23_1500_1600.gz",
  15. "LogPath":"cdnlog.cn-hangzhou.oss.aliyun-inc.com/gc.ggter.com/2015_05_23/gc.ggter.com_2015_05_23_1500_1600.gz?OSSAccessKeyId=3xmgf7JheOfOTUTf&Expires=1432539994&Signature=dMv7VqPqZHXVbKPmorGIvylC66c%3D",
  16. "LogSize":194,
  17. "StartTime":"2015-05-23T07:00:00Z"
  18. },
  19. {
  20. "EndTime":"2015-05-23T14:00:00Z",
  21. "LogName":"gc.ggter.com_2015_05_23_2100_2200.gz",
  22. "LogPath":"cdnlog.cn-hangzhou.oss.aliyun-inc.com/gc.ggter.com/2015_05_23/gc.ggter.com_2015_05_23_2100_2200.gz?OSSAccessKeyId=3xmgf7JheOfOTUTf&Expires=1432539994&Signature=FpSQCbgNcxCBYIxKVoKC8mGghUQ%3D",
  23. "LogSize":258,
  24. "StartTime":"2015-05-23T13:00:00Z"
  25. }
  26. ]
  27. },
  28. "DomainName":"gc.ggter.com",
  29. "PageNumber":1,
  30. "PageSize":100,
  31. "TotalCount":3
  32. },
  33. "RequestId":"1805F349-0A2B-41D9-B4AD-33632AFC27F1"
  34. }

Exception return example

JSON format

  1. {
  2. "Code":"InternalError",
  3. "HostId":"cdn.aliyuncs.com",
  4. "Message":"The request processing has failed due to some unknown error.",
  5. "RequestId":"16A96B9A-F203-4EC5-8E43-CB92E68F4CD8"
  6. }

Error code

For more information, see Error code of this product.

Thank you! We've received your feedback.