Baidu AI Cloud
中国站

百度智能云

CDN

Log Interface

In the log interface, all input and output time is UTC time.

Get the Access Logs

	 $domain = "test.domain.com"; 
	 $startTime = "2016-10-07T16:00:00Z"; 
	 $endTime = "2016-10-07T18:00:00Z"; 
	 $resp = $client->getDomainLog($domain, $startTime, $endTime); 

Access Multiple Logs of Domain Name

$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);
Previous
Statistical Interface (old version)
Next
Tool Interface