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
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
{ "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
For details about error status codes, see Status Codes.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot