GetLogReport【获取日志报表信息】

获取日志报表信息:可根据域名ID、时间段获取日志列表。 如果不指定任何查询条件,则会返回所有域名日记列表。

Request Parameters

Parameter name Type Description Required
action String API 标识符 Yes
domainId String 域 ID No
dateFrom String 查询开始时间 No
dateTo String 查询结束时间 No

Response Elements

Name Type Description
message String 执行结果信息
code Integer HTTP Resonpe响应状态码
data Array JSON 格式的日志下载信息列表,每项参数可见下面 Data Item

Data Item

Name Type Description
url String 下载地址
dateTo String 查询结束时间
dateFrom String 查询开始时间
fileSize String 文件大小

Example

Example Request:

Request Headers:

POST /api/ HTTP/1.1
Origin: https://console.plcloud.com
X-CSRFToken: 6An6xEuOJqW6dVDtlgzZr6FqgkSbJmqp
Content-Type: application/x-www-form-urlencoded

Form Data:

action: GetLogReport
domainId: 206968
dateFrom: 2015-02-07
dateTo: 2015-02-09

Example Response:

{
  "message": "Success",
  "code": 200,
  "data": [
    {
      "url": "http://dx.wslog.chinanetcenter.com/log/plcloudcdn/downcdn.ptsuyou.com/2015-02-07-0000-2330_downcdn.ptsuyou.com.cn.log.gz?wskey=d61700e5269e834100d8dabad8d7540089ff2f585500332e",
      "dateTo": "2015-02-07 23:59:59",
      "dateFrom": "2015-02-07 00:00:00",
      "fileSize": "141615"
    },
    {
      "url": "http://dx.wslog.chinanetcenter.com/log/plcloudcdn/downcdn.ptsuyou.com/2015-02-08-0000-2330_downcdn.ptsuyou.com.ov.log.gz?wskey=04e600e5883248f000d8d70c9e70540098d8c46a55004877",
      "dateTo": "2015-02-08 23:59:59",
      "dateFrom": "2015-02-08 00:00:00",
      "fileSize": "24594"
    },
    {
      "url": "http://dx.wslog.chinanetcenter.com/log/plcloudcdn/downcdn.ptsuyou.com/2015-02-08-0000-2330_downcdn.ptsuyou.com.hk.log.gz?wskey=759800e5e8e30de200d832130284540027f53e0a55001a5b",
      "dateTo": "2015-02-08 23:59:59",
      "dateFrom": "2015-02-08 00:00:00",
      "fileSize": "10560"
    },
    {
      "url": "http://dx.wslog.chinanetcenter.com/log/plcloudcdn/downcdn.ptsuyou.com/2015-02-08-0000-2330_downcdn.ptsuyou.com.cn.log.gz?wskey=54f400e53a83d05b00d8c08b069f54006fed580c5500a7b8",
      "dateTo": "2015-02-08 23:59:59",
      "dateFrom": "2015-02-08 00:00:00",
      "fileSize": "157115"
    },
    {
      "url": "http://dx.wslog.chinanetcenter.com/log/plcloudcdn/downcdn.ptsuyou.com/2015-02-07-0000-2330_downcdn.ptsuyou.com.ov.log.gz?wskey=0ff200e5f087e6d900d8bd0ef65154007012ecb855004fbf",
      "dateTo": "2015-02-07 23:59:59",
      "dateFrom": "2015-02-07 00:00:00",
      "fileSize": "178"
    },
    {
      "url": "http://dx.wslog.chinanetcenter.com/log/plcloudcdn/downcdn.ptsuyou.com/2015-02-09-0000-2330_downcdn.ptsuyou.com.cn.log.gz?wskey=1aa100e5d70379dd00d80ebd47905400050e1eed550025db",
      "dateTo": "2015-02-09 23:59:59",
      "dateFrom": "2015-02-09 00:00:00",
      "fileSize": "67670"
    },
    {
      "url": "http://dx.wslog.chinanetcenter.com/log/plcloudcdn/downcdn.ptsuyou.com/2015-02-09-0000-2330_downcdn.ptsuyou.com.hk.log.gz?wskey=ec0d00e551837c8200d8b4aef86c540019fbf86755009aae",
      "dateTo": "2015-02-09 23:59:59",
      "dateFrom": "2015-02-09 00:00:00",
      "fileSize": "4233"
    },
    {
      "url": "http://dx.wslog.chinanetcenter.com/log/plcloudcdn/downcdn.ptsuyou.com/2015-02-09-0000-2330_downcdn.ptsuyou.com.ov.log.gz?wskey=dcbf00e54f06057600d806ef60965400484be607550088a4",
      "dateTo": "2015-02-09 23:59:59",
      "dateFrom": "2015-02-09 00:00:00",
      "fileSize": "10163"
    }
  ]
}