百度智能云

All Product Document

          CDN

          Query the Range Forwarding to Origin

          This interface is used to query the Range origin setting of the specified accelerated domain name.

          Method Path Description
          GET /v2/domain/{domain}/config?rangeSwitch Query the range origin settings of the domain name

          domain: Need to query the accelerated domain name of CDN.

          Request example

          GET /v2/domain/myself.baidu.com/config?rangeSwitch HTTP/1.1 
          Host: cdn.baidubce.com 

          Response body

          Parameter Type Description
          rangeSwitch string Origin configuration of a domain name, “on” means enabled, and “off” means disabled.

          Response example

          HTTP/1.1 200 OK 
          Server: nginx/1.14.0 
          Date: Fri, 21 Sep 2018 03:46:35 GMT 
          Content-Type: application/json; charset=utf-8 
          Transfer-Encoding: chunkedConnection: keep-alive 
          X-Powered-By: PHP/5.6.36 
          x-bce-request-id: fb39f52e-203d-5558-6543-15bbaaf6b4a7
          
          {"rangeSwitch":"on"} 
          Previous
          Query the Forward-to-origin Protocol
          Next
          Query the Mobile Access Control