百度智能云

All Product Document

          CDN

          Query the Forward-to-origin Protocol

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

          Method Path Description
          GET /v2/domain/{domain}/config?originProtocol Query the origin configuration of the domain name

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

          Request example

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

          Response body

          Parameter Type Description
          originProtocol originProtocol Origin configuration of the domain name

          originProtocolType description

          Parameter Optional Type Description
          value Required string The value is "https", "http" or “*", respectively representing https origin, http origin and protocol follow origin.

          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
          
          { 
              "originProtocol": { 
                  "value": "http" 
              } 
          } 
          Previous
          Certificate Assocation Operation
          Next
          Query the Range Forwarding to Origin