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