查询动态加速域名列表
更新时间:2019-08-16
Method | Path | 说明 |
---|---|---|
GET | /v2/dsa/domain | 查询动态加速域名列表 |
响应体 (Response Body)
参数 | 可选 | 类型 | 说明 |
---|---|---|---|
domains | 必选 | List<DSADomain> | 动态加速域名列表 |
DSADomain结构如下:
参数 | 可选 | 类型 | 说明 |
---|---|---|---|
domain | 必选 | String | 加速域名 |
rules | 必选 | List<DSARule> | 动态规则列表 |
modifyTime | 必选 | Timestamp | 最新生效时间,UTC时间 |
comment | 可选 | String | 备注 |
DSARule结构如下:
参数 | 可选 | 类型 | 说明 |
---|---|---|---|
type | 必选 | String | "suffix"表示文件类型,"path"表示动态路径,“exactPath“表示动态URL |
value | 必选 | String | type所指定类型的配置规则,多条规则使用";"分割 |
请求示例
Plain Text
1GET /v2/dsa/domain HTTP/1.1
2Host: cdn.baidubce.com
响应示例
Plain Text
1HTTP/1.1 200 OK
2Content-Length: 436
3Content-Type: application/json;charset=utf-8
4Date: Mon, 08 Apr 2019 04:52:59 GMT
5Server: BWS
6X-Application-Context: application:8680
7X-Bce-Request-Id: f5499f0a-d8d9-404c-bfc5-ad88b8cf0461
8
9{
10 "domains":[
11 {
12 "domain":"my.domain1.com",
13 "modifyTime":"2019-04-08T04:52:47Z",
14 "rules":[
15 {
16 "type":"suffix",
17 "value":".aspx"
18 },
19 {
20 "type":"path",
21 "value":"/path"
22 },
23 {
24 "type":"exactPath",
25 "value":"/url"
26 }
27 ]
28 },
29 {
30 "domain":"my.domain2.com",
31 "modifyTime":"2019-04-08T04:52:51Z",
32 "rules":[
33 {
34 "type":"suffix",
35 "value":".asp;.jsp"
36 },
37 {
38 "type":"path",
39 "value":"/path"
40 },
41 {
42 "type":"exactPath",
43 "value":"/path/to/file.jpg;/path/to/file.mp4"
44 }
45 ],
46 "comment":"test"
47 }
48 ]
49}