productType 可选 Integer 合法值为 0 和 1,分别表示创建的域名类型为 CDN 和 DRCDN,默认值为 0。当 productType 为 1 表示期望创建 DRCDN 域名时,必须显示配置 dsa 参数。 dsa 可选 DSA 动态加速规则,productType 为 1 时此项有效。
32','192.168.2.1/24'] 使用示例: if (baidu_utils.ipInCidr('192.168.2.100', ['192.168.1.1/32','192.168.2.1/24'])) { r.return(403); } Base64 编码 '1234'.toBytes().toString
1.1.1.2 , 1.1.1.3 ] } , errorPage : [ { code : 404 , redirectCode : 302 , url : /customer_404.html } ] , compress : { allow : True , type : br } , errorPage : [ { code :
请求示例 GET /v 2 /cache/quota HTTP/ 1.1 Host : cdn.baidubce.com 响应示例 HTTP/ 1.1 200 Content-Length : 190 Content-Type : application/json;utf -8 x-bce-request-id : 81 d 0 b 05 f -5 ad 4 -1 f 22 -8068 -d 5 c
PHP/7.1.5 x-bce-request-id: 934b05db-484f-a5ad-7f54-e60c4c707a0 { "IcpStatus":"true" } 域名不能被添加 HTTP/1.1 200 OK Server: nginx Date: Wed, 04 Dec 2019 03:30:08 GMT Content-Type: application
allowEmpty":true } } 响应示例 HTTP/1.1 200 OK Content-Length: 0 Content-Type: application/json;utf-8 x-bce-request-id: 81d0b05f-5ad4-1f22-8068-d5c9de60a1d7 Server: BCE-CDN { "status":"RUNNING
seoSwitch HTTP/1.1 Host: cdn.baidubce.com Content-Length: 72 Content-Type: application/json { "seoSwitch": {"diretlyOrigin": "ON"} } HTTP/1.1 200 OK Server: nginx/1.14.0 Date
originFixedISP HTTP/1.1 Host: cdn.baidubce.com 响应体 (Response Body) 参数 类型 说明 originFixedISP bool true:开启同运营商回源;false:关闭同运营商回源 响应示例: HTTP/1.1 200 OK Server: nginx/1.14.0 Date: Mon, 11 Apr 2022 07:52:50 GMT
disable HTTP/1.1 Host: cdn.baidubce.com Content-Length: 0 Content-Type: text/json;utf-8 响应示例 HTTP/1.1 200 OK Content-Length: 0 Content-Type: application/json;utf-8 x-bce-request-id: 81d0b05f-5ad4-1f22-
cacheTTL HTTP/1.1 Host: cdn.baidubce.com 响应示例 HTTP/1.1 200 OK Server: nginx Date: Wed, 26 Jun 2019 03:42:11 GMT Content-Type: application/json; charset=utf-8 Transfer-Encoding: chunked Connection: keep-alive