Query and Get Real User IP
Last Updated:2021-10-13
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"
}
}