Baidu AI Cloud
中国站

百度智能云

CDN

Query Dynamic Acceleration Domain Name List

Method Path Description
GET /v2/dsa/domain Query dynamic acceleration domain name list

Response body

Parameter Optional Type Description
domains Required List<DSADomain> List of dynamic accelerated domain names

The DSADomain structure is as follows:

Parameter Optional Type Description
domain Required String Accelerated domain name
rules Required List<DSARule> Dynamic rule list
modifyTime Required Timestamp Latest effective time, UTC time
comment Optional String Comments

The structure is as follows:

Parameter Optional Type Description
type Required String “suffix” means file type, “path” means dynamic path, and “exactPath” means dynamic URL.
value Required String Configuration rules for the specified type in “type ", separate multiple rules by “; ".

Request example

GET /v2/dsa/domain HTTP/1.1 
Host: cdn.baidubce.com 

Response example

HTTP/1.1 200 OK 
Content-Length: 436
Content-Type: application/json;charset=utf-8 
Date: Mon, 08 Apr 2019 04:52:59 GMT 
Server: BWS 
X-Application-Context: application:8680 
X-Bce-Request-Id: f5499f0a-d8d9-404c-bfc5-ad88b8cf0461

{ 
    "domains":[ 
        { 
            "domain":"my.domain1.com", 
            "modifyTime":"2019-04-08T04:52:47Z", 
            "rules":[ 
                { 
                    "type":"suffix", 
                    "value":".aspx" 
                }, 
                { 
                    "type":"path", 
                    "value":"/path" 
                }, 
                { 
                    "type":"exactPath", 
                    "value":"/url" 
                } 
            ] 
        }, 
        { 
            "domain":"my.domain2.com", 
            "modifyTime":"2019-04-08T04:52:51Z", 
            "rules":[ 
                { 
                    "type":"suffix", 
                    "value":".asp;.jsp" 
                }, 
                { 
                    "type":"path", 
                    "value":"/path" 
                }, 
                { 
                    "type":"exactPath", 
                    "value":"/path/to/file.jpg;/path/to/file.mp4" 
                } 
            ], 
            "comment":"test" 
        } 
    ] 
}
Previous
Cache Management Interface
Next
Configure the Dynamic Acceleration Rules of Domain Name