forked from docs/doc-exports
Reviewed-by: Hasko, Vladimir <vladimir.hasko@t-systems.com> Co-authored-by: Li, Qiao <qiaoli@huawei.com> Co-committed-by: Li, Qiao <qiaoli@huawei.com>
15 KiB
15 KiB
Querying the Source IP Header
Function Description
This API is used to query the source IP header.
URI
- URI format
- Parameter description
Table 1 Path parameters Parameter
Mandatory
Type
Description
project_id
Yes
String
Specifies the project ID.
lang
No
String
Specifies the language configuration. The options are zh-cn and en-us. The default value is en-us.
Request
Request parameters
None
Response
Response parameters
Parameter |
Type |
Description |
---|---|---|
default |
Array |
Specifies the default HTTP request header to identify the real source IP address. |
cloudflare |
Array |
Specifies the HTTP request header used by Cloudflare to identify the real source IP address. |
akamai |
Array |
Specifies the HTTP request header used by Akamai to identify the real source IP address. |
custom |
Array |
Specifies the custom HTTP request header to identify the real source IP address. |
Example
Response example
{ "sipheadermap": { "default": ["X-Forwarded-For"], "cloudflare": ["CF-Connecting-IP", "X-Forwarded-For"], "akamai": ["True-Client-IP"], "custom": [] }, "locale": { "default": "Default", "cloudflare": "CloudFlare", "akamai": "Akamai", "custom": "Custom" } }
Status Code
Table 5 describes the normal status code returned by the API.
For details about error status codes, see Status Codes.
Parent topic: Obtaining Option Details