日志接口
更新时间:2023-05-16
在日志接口中,所有的输入和输出时间都是UTC时间。
获取访问日志
$domain = "test.domain.com";
$startTime = "2016-10-07T16:00:00Z";
$endTime = "2016-10-07T18:00:00Z";
$resp = $client->getDomainLog($domain, $startTime, $endTime);
获取多个域名日志
$domain = "test-sdk.sys-qa.com";
$startTime = "2017-12-07T16:00:00Z";
$endTime = "2017-12-07T18:00:00Z";
$options = array(
'startTime' => $startTime,
'endTime' => $endTime,
'domains' => array(
$domain
)
);
$resp = $this->client->getDomainsLog($options);
print_r($resp);