动态加速接口
更新时间:2023-05-16
配置动态加速服务
本接口用于开通/关闭动态加速服务,动态加速服务关闭后第二天00:00后可以重新打开
// "enable"为开通动态加速服务,"disable"为关闭
$action = array(
"action" => "enable"
);
$resp = $this->client->setDsa($action);
print_r($resp);
查询动态加速域名列表
$domain = "test-sdk.sys-qa.com";
$resp = $this->client->getDomainDsa();
print_r($resp);
配置域名动态加速规则
$dsa = array(
'dsa' => array(
'enabled' => true,
'rules' => array(
array(
'type' => 'suffix',
'value' => '.mp4;.jpg;.php'
)
)
)
);
$domain = "test-sdk.sys-qa.com";
$resp = $this->client->setDomainDsa($domain, $dsa);
print_r($resp);