Inserts an "X-Forwarded-For" header into all HTTP and HTTPS requests.
| Field Group Name | Field Name | Type | Description |
|---|---|---|---|
| default | service | asso | |
| ip_forward | ip_forward_enable | boolean | |
| ip_forward | ip_forward_mode | enum | Sets the mode to forward the client IP address to the real service.Available values:
|
| ip_forward | ip_forward_customized_name | string | Sets the customized name of the inserted HTTP header, URL query and HTTP cookie used to forward the client IP to the real service. |
| ip_forward | ip_forward_chain | boolean | |
| ip_forward | ip_forward_ipport | boolean | |
| cert_forward | enable | boolean | |
| cert_forward | insert_mode | enum | Sets the mode to forward the client certificate to the real service.Available values:
|
| cert_forward | header_name | string | Sets the name of the HTTP header used to forward the client certificate to the real service. |
| cert_forward | content_type | enum | Specifies the encoding format of the certificate content.Available values:
|
| https_xclientcert | xclientcert_plaintext | asso | |
| https_xclientcert | dnencoding | enum | Available values:
|
| https_xclientcert | rdn_delimiter | string | Sets the separator used to seperate client certificate DN fields. |
| https_xclientcert | rdn_position | enum | Sets the position to place the DN field separator.Available values:
|
| https_xclientcert | oid | asso |
{
"HTTPForwardingSettings": {
"meta": {
"abstract": false,
"verbose_name": HTTP Forwarding Settings,
},
"fieldgroups": [
{
"fields": [
{
"verbose_name": field_verbose_name1,
"field_name": field_name1
},
...
],
"group_name": field_group_name1
},
...
]
}
}
{
<param1>:<value1>,
<param2>:<value2>,
...
}
| Parameter | Type | Description |
|---|
{
"HTTPForwardingSettings": {
"instance_id":<instance_id>,
<param1>:<value1>,
<param2>:<value2>,
...
}
}
{
"HTTPForwardingSettings": [
{
"instance_id":<instance_id>,
<param1>:<value1>,
<param2>:<value2>,
...
},
...
]
}
| Parameter | Type | Description |
|---|---|---|
| instance_id | URI | ID of the instance |
| field_group_name | URI | (optional) Target field group name to query. Available names are: default, ip_forward, cert_forward, https_xclientcert, Notice: There could only be one field_group_name or field_name in the URL. And if both field_group_name and field_name are not specified, will try to query default field_group data. |
| field_name | URI | (optional) Target field name to query. Available names are: service, ip_forward_enable, ip_forward_mode, ip_forward_customized_name, ip_forward_chain, ip_forward_ipport, enable, insert_mode, header_name, content_type, xclientcert_plaintext, dnencoding, rdn_delimiter, rdn_position, oid, Notice: There could only be one field_group_name or field_name in the URL. |
| Field Group Name | Field Name | Type | Description |
|---|---|---|---|
| default | service | asso | |
| ip_forward | ip_forward_enable | boolean | |
| ip_forward | ip_forward_mode | enum | Sets the mode to forward the client IP address to the real service.Available values:
|
| ip_forward | ip_forward_customized_name | string | Sets the customized name of the inserted HTTP header, URL query and HTTP cookie used to forward the client IP to the real service. |
| ip_forward | ip_forward_chain | boolean | |
| ip_forward | ip_forward_ipport | boolean | |
| cert_forward | enable | boolean | |
| cert_forward | insert_mode | enum | Sets the mode to forward the client certificate to the real service.Available values:
|
| cert_forward | header_name | string | Sets the name of the HTTP header used to forward the client certificate to the real service. |
| cert_forward | content_type | enum | Specifies the encoding format of the certificate content.Available values:
|
| https_xclientcert | xclientcert_plaintext | asso | |
| https_xclientcert | dnencoding | enum | Available values:
|
| https_xclientcert | rdn_delimiter | string | Sets the separator used to seperate client certificate DN fields. |
| https_xclientcert | rdn_position | enum | Sets the position to place the DN field separator.Available values:
|
| https_xclientcert | oid | asso |
{
"HTTPForwardingSettings": {
"instance_id":<instance_id>,
<field1>:<value1>,
<field2>:<value2>,
...
}
}
When some field_group name is provided:
{
"HTTPForwardingSettings": {
"instance_id":<instance_id>,
<field1>:<value1>,
<field2>:<value2>,
...
}
}
When some field name is provided:
{
"HTTPForwardingSettings": {
"instance_id":<instance_id>,
<field>:<value>,
}
}
{
"msg": <success-or-error-msg>
}
{
<field_name>:<value>
}
When field name is not specified in URL:
Notice: The fields not provided are left untouched.
{
<field_name1>:<value1>,
<field_name2>:<value2>,
...
}
| Parameter | Type | Description |
|---|---|---|
| instance_id | URI | ID of the instance |
| field_name | URI | (optional) Target field name to update. Available field names are: ip_forward_enable, ip_forward_mode, ip_forward_customized_name, ip_forward_chain, ip_forward_ipport, enable, insert_mode, header_name, content_type, dnencoding, rdn_delimiter, rdn_position, |
| Field Name | Type | Description |
|---|---|---|
| ip_forward_enable | boolean | |
| ip_forward_mode | enum | Sets the mode to forward the client IP address to the real service.Available values:
|
| ip_forward_customized_name | string | Sets the customized name of the inserted HTTP header, URL query and HTTP cookie used to forward the client IP to the real service. |
| ip_forward_chain | boolean | |
| ip_forward_ipport | boolean | |
| enable | boolean | |
| insert_mode | enum | Sets the mode to forward the client certificate to the real service.Available values:
|
| header_name | string | Sets the name of the HTTP header used to forward the client certificate to the real service. |
| content_type | enum | Specifies the encoding format of the certificate content.Available values:
|
| dnencoding | enum | Available values:
|
| rdn_delimiter | string | Sets the separator used to seperate client certificate DN fields. |
| rdn_position | enum | Sets the position to place the DN field separator.Available values:
|
All configuration fields and their values are replied:
{
"HTTPForwardingSettings": {
"instance_id":<instance_id>,
<field1>:<value1>,
<field2>:<value2>,
...
<field_group1>: {
<field3>:<value3>,
<field4>:<value4>,
...
},
<field_group2>: {
<field5>:<value5>,
<field6>:<value6>,
...
},
...
}
}
| Parameter | Type | Description |
|---|---|---|
| instance_id | URI | ID of the instance |
{
"HTTPForwardingSettings": {
"instance_id":<instance_id>,
"xclientcert_plaintext":[
{
<field1>:<value1>,
<field2>:<value2>,
...
}
]
}
}
{
<param1>:<value1>,
<param2>:<value2>,
...
}
| Parameter | Type | Description |
|---|---|---|
| mode | enum | Available values:
|
| field_name | GroupField | |
| customized_name | string | specifies a customized name for the certificate field to be inserted into the HTTP header, URL query string, or HTTP cookie. |
| format_opt | GroupField |
{
"HTTPXclientcert": {
"instance_id":<instance_id>,
<param1>:<value1>,
<param2>:<value2>,
...
}
}
{
"msg": <success-or-error-msg>
}
| Parameter | Type | Description |
|---|---|---|
| instance_id | URI | ID of the instance |
{
"HTTPForwardingSettings": {
"instance_id":<instance_id>,
"oid":[
{
<field1>:<value1>,
<field2>:<value2>,
...
}
]
}
}
{
<param1>:<value1>,
<param2>:<value2>,
...
}
| Parameter | Type | Description |
|---|---|---|
| oid | enum | Available values:
|
| name | string |
{
"HTTPOID": {
"instance_id":<instance_id>,
<param1>:<value1>,
<param2>:<value2>,
...
}
}
{
"msg": <success-or-error-msg>
}