All Products
Search
Document Center

DescribeDcdnDomainLog

Last Updated: Mar 18, 2019

Description

You can call this operation to obtain the download link for the access logs for a specific node.

If you specify neither StartTime nor EndTime, you obtain the logs for the past 24 hours by default.

You must specify both StartTime and EndTime to obtain the logs for a specified period.

Request parameters

Name Type Required Description
Action String Yes The operation that you want to perform.
Set the value to DescribeDcdnDomainLog.
DomainName String Yes The domain name. You can specify only one domain name.
StartTime String No The start time of the queried log.
The date format follows the ISO8601 standard and UTC time is used.
For example, 2016-10-20T04:00:00Z.
EndTime String No The end time of the queried log. The end time must be later than the start time.
The duration specified by StartTime and EndTime cannot exceed one year.
The date format follows the ISO8601 standard and UTC time is used.
For example, 2016-10-20T04:00:00Z.
PageSize Long No The page size.
Default value: 300
Maximum value: 1000
Valid values: any integer from 1 to 1000
PageNumber Long No The page number.
Valid values: any integer greater than 1

Response parameters

Name Type Description
DomainLogDetails DomainLogDetail The details about the domain name log.

DomainLogDetail

Name Type Description
LogCount Long The total number of records on the page.
DomainName String The domain name.
PageInfos PageInfoDetail The details about the page.
LogInfos LogInfoDetail The details about the log.

PageInfoDetail

Name Type Description
PageIndex Long The page number.
PageSize Long The page size.
Total Long The total number of records.

LogInfoDetail

Name Type Description
LogName String The log name.
LogPath String The log path.
StartTime String The start time.
EndTime String The end time.
LogSize Long The log size.

Examples

Sample requests

  1. https://dcdn.aliyuncs.com?Action=DescribeDcdnDomainLog&DomainName=test1.test.com&<Common request parameters>

Sample responses

JSON format

  1. {
  2. "RequestId": "077D0284-F041-4A41-A932-B48377FDAA25",
  3. "DomainLogDetails": {
  4. "DomainLogDetail": [
  5. {
  6. "LogInfos": {
  7. "LogInfoDetail": [
  8. {
  9. "LogName": "test1.test.com_2018_03_25_180000_190000.gz",
  10. "LogPath": "cdnlog2.aliyuncs.com/test1.test.com/2018_03_25/test1.test.com_2018_03_25_180000_190000.gz?Expires=1522659931&OSSAccessKeyId=test&Signature=suZFyJHoD3RzZqK%2Bcu6P4VaNAVI%3D",
  11. "EndTime": "1521975600",
  12. "StartTime": "1521972000",
  13. "LogSize": 2645401
  14. },
  15. {
  16. "LogName": "test1.test.com_2018_03_25_190000_200000.gz",
  17. "LogPath": "cdnlog2.aliyuncs.com/test1.test.com/2018_03_25/test1.test.com_2018_03_25_190000_200000.gz?Expires=1522659931&OSSAccessKeyId=test&Signature=C01p%2BtA%2BfLywKP9Sru2Oxwy7Do0%3D",
  18. "EndTime": "1521979200",
  19. "StartTime": "1521975600",
  20. "LogSize": 2653965
  21. }
  22. ]
  23. },
  24. "LogCount": 20,
  25. "PageInfos": {
  26. "PageNumber": 1,
  27. "PageSize": 20,
  28. "Total": 20
  29. },
  30. "DomainName": "test1.test.com"
  31. }
  32. ]
  33. }
  34. }