Query for Access IP of Real User
Last Updated:2020-09-17
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"
}
}