百度智能云

All Product Document

          CDN Abroad

          Detailed Interface to Query the Domain Name

          Interface

          This interface is used to query domain name details.

          Query all configuration items of the domain name:

          Method Path Description
          GET /v2/abroad/domain/{domain}/config Query all configuration items of the domain name

          Response code(Http Status Code)

          Http Status Code Description
          200 Successfully queried
          400 Do not belong to the current user

          Response body

          Parameter Type Description
          domain string Accelerated domain name
          cname string A CNAME domain name generated to accelerate the domain name, and it is required to resolve CNAME for accelerating domain name to such domain name at the DNS (domain name resolution) service provider.
          status string Accelerated domain name running status: RUNNING, STOPED, OPERATING
          createTime Timestamp Creation time of domain name
          lastModifyTime Timestamp Latest modification time
          originConfig list Origin server configuration
          cacheTtl list Cache configuration
          originHost string Origin Host
          refererACL refererACL referer blacklist and whitelist
          ipACL ipACL ip blacklist and whitelist
          cacheFullUrl boolean Rules for cache parameters

          Request example

          GET /v2/abroad/domain/test.bcecdn.com/config HTTP/1.1 
          x-bce-date: 2018-11-22T05:54:26Z 
          Host: cdn.baidubce.com 
          Content-Length: 0
          Authorization: bce-auth-v2... 

          Response example

          { 
              "requestId":"d6a868e9-dacc-89f-dedb-980b87350640", 
              "code":"success", 
              "message":{ 
                  "domain":"test.bcecdn.com", 
                  "cname":"test.bcecdn.com.g.bdydns.com", 
                  "status":"RUNNING", 
                  "createTime":"2018-11-19 22:09:57", 
                  "lastModifyTime":"2018-11-21 15:38:40", 
                  "originConfig":[ 
                      { 
                          "type":"IP", 
                          "backup":false, 
                          "addr":"1.2.3.4" 
                      } 
                  ], 
                  "cacheTtl":[ 
                      { 
                          "override_origin":false, 
                          "type":"suffix", 
                          "weight":30, 
                          "value":".jpg", 
                          "ttl":60 
                      }, 
                      { 
                          "override_origin":true, 
                          "type":"path", 
                          "weight":50, 
                          "value":"/", 
                          "ttl":60 
                  } 
                  ], 
                  "ipACL":{ 
                      "blackList":[ 
                          "1.1.1.2",
                          "64.8.12.3/25"
                      ] 
                  }, 
                  "refererACL":{ 
                      "blackList":[ 
                          "http://www.example.com/*"
                      ], 
                      "allowEmpty":true 
                  }, 
                  "originHost":"test.bcecdn.com", 
                  "cacheFullUrl":true 
              } 
          }
          Previous
          Set Forward-to-origin Host
          Next
          Set HTTPS Acceleration