Baidu AI Cloud
中国站

百度智能云

CDN

Query and Get Real User IP

This interface is used to query the “Get Real User IP” setting.

Method Path Description
GET /v2/domain/{domain}/config?clientIp Query the “Get Real User IP” setting

domain: CDN accelerated domain name

Response Body

Parameters Optional Type Description
clientIp Required ClientIp Enable or disable 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
Update the Forward-to-origin Address of the Acceleration Domain Name
Next
HTTPS Related Interface