百度智能云

All Product Document

          CDN

          Query for Access IP of Real User

          This interface is used to query the setting of “Get real user IP".

          Method Path Description
          GET /v2/domain/{domain}/config?clientIp Query the setting of “Get real user IP ".

          domain: CDN accelerated domain name.

          Response body

          Parameter Optional Type Description
          clientIp Required ClientIp Enabled or disabled and IP type

          Response code (Http Status Code)

          HTTP Status Code Description
          200 Success

          Request example

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

          Response example

          HTTP/1.1 200 OK 
          Content-Type: application/json; charset=utf-8 
          Transfer-Encoding: chunked 
          
          { 
              "clientIp":{ 
                  "enabled":true, 
                  "name":"X-Real-IP" 
              } 
          } 
          Previous
          Set the Access IP of Real User
          Next
          Set the IP Access Frequency Limit