| Field Group Name | Field Name | Type | Description |
|---|---|---|---|
| default | compression | boolean | |
| default | mask_server | boolean | Removes the Server header from the response returned by the real service. |
| default | mask_via | boolean | Removes the Via header from the response returned by the real service. |
| default | server_conn_reuse | boolean | Enables the real service to process multiple transactions on one server connection. |
| default | server_persist | boolean | Enables the system to add the Keep-Alive header to client requests before forwarding them to the real service. |
| default | shuntreset | boolean | Enables the system to close non-reusable server connections by sending RST packets. |
| default | ip_forward_enable | boolean | |
| default | splice | boolean | |
| default | alive | boolean | |
| default | header_name | string | |
| default_http_errors | default_http_errors | asso | |
| host_permissions | host_permissions | asso | |
| method_permissions | global_method_permission | multienum | |
| method_permissions | method_permissions | asso |
{
"GlobalHTTPSettings": {
"meta": {
"abstract": false,
"verbose_name": Global HTTP Settings,
},
"fieldgroups": [
{
"fields": [
{
"verbose_name": field_verbose_name1,
"field_name": field_name1
},
...
],
"group_name": field_group_name1
},
...
]
}
}
{
<param1>:<value1>,
<param2>:<value2>,
...
}
| Parameter | Type | Description |
|---|---|---|
| asso_targets | string or list | specify the target asso you want to perform action on. And target asso can be one or more. |
{
"config_change": true|false,
"msg": <msg>
}
| Parameter | Type | Description |
|---|---|---|
| config_change | bool | Whether the action causes configuration change. |
| msg | sring | Empty when action is performed successfully, otherwise it represents the error info. |
{
<param1>:<value1>,
<param2>:<value2>,
...
}
| Parameter | Type | Description |
|---|---|---|
| asso_targets | string or list | specify the target asso you want to perform action on. And target asso can be one or more. |
{
"config_change": true|false,
"msg": <msg>
}
| Parameter | Type | Description |
|---|---|---|
| config_change | bool | Whether the action causes configuration change. |
| msg | sring | Empty when action is performed successfully, otherwise it represents the error info. |
| Parameter | Type | Description |
|---|---|---|
| field_group_name | URI | (optional) Target field group name to query. Available names are: default, default_http_errors, host_permissions, method_permissions, 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: compression, mask_server, mask_via, server_conn_reuse, server_persist, shuntreset, ip_forward_enable, splice, alive, header_name, default_http_errors, host_permissions, global_method_permission, method_permissions, Notice: There could only be one field_group_name or field_name in the URL. |
| Field Group Name | Field Name | Type | Description |
|---|---|---|---|
| default | compression | boolean | |
| default | mask_server | boolean | Removes the Server header from the response returned by the real service. |
| default | mask_via | boolean | Removes the Via header from the response returned by the real service. |
| default | server_conn_reuse | boolean | Enables the real service to process multiple transactions on one server connection. |
| default | server_persist | boolean | Enables the system to add the Keep-Alive header to client requests before forwarding them to the real service. |
| default | shuntreset | boolean | Enables the system to close non-reusable server connections by sending RST packets. |
| default | ip_forward_enable | boolean | |
| default | splice | boolean | |
| default | alive | boolean | |
| default | header_name | string | |
| default_http_errors | default_http_errors | asso | |
| host_permissions | host_permissions | asso | |
| method_permissions | global_method_permission | multienum | |
| method_permissions | method_permissions | asso |
{
"GlobalHTTPSettings": {
<field1>:<value1>,
<field2>:<value2>,
...
}
}
When some field_group name is provided:
{
"GlobalHTTPSettings": {
<field1>:<value1>,
<field2>:<value2>,
...
}
}
When some field name is provided:
{
"GlobalHTTPSettings": {
<field>:<value>,
}
}
{
<field_name>:<value>
}
When field name is specified in URL:
Notice: The fields not provided are left untouched.
{
<field_name1>:<value1>,
<field_name2>:<value2>,
...
}
| Parameter | Type | Description |
|---|---|---|
| field_name | URI | (optional) Target field name to update. Available field names are: compression, mask_server, mask_via, server_conn_reuse, server_persist, shuntreset, ip_forward_enable, splice, alive, header_name, default_http_errors, host_permissions, global_method_permission, method_permissions, |
| Field Name | Type | Description |
|---|---|---|
| compression | boolean | |
| mask_server | boolean | Removes the Server header from the response returned by the real service. |
| mask_via | boolean | Removes the Via header from the response returned by the real service. |
| server_conn_reuse | boolean | Enables the real service to process multiple transactions on one server connection. |
| server_persist | boolean | Enables the system to add the Keep-Alive header to client requests before forwarding them to the real service. |
| shuntreset | boolean | Enables the system to close non-reusable server connections by sending RST packets. |
| ip_forward_enable | boolean | |
| splice | boolean | |
| alive | boolean | |
| header_name | string | |
| global_method_permission | multienum |
All configuration fields and their values are replied:
{
"GlobalHTTPSettings": {
<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 |
{
"GlobalHTTPSettings": {
"instance_id":<instance_id>,
"default_http_errors":[
{
<field1>:<value1>,
<field2>:<value2>,
...
}
]
}
}
{
<param1>:<value1>,
<param2>:<value2>,
...
}
| Parameter | Type | Description |
|---|---|---|
| error_code | string | |
| url | importurl | |
| enable | boolean |
{
"DefaultHTTPError": {
"instance_id":<instance_id>,
<param1>:<value1>,
<param2>:<value2>,
...
}
}
{
"msg": <success-or-error-msg>
}
| Parameter | Type | Description |
|---|---|---|
| instance_id | URI | ID of the instance |
{
"GlobalHTTPSettings": {
"instance_id":<instance_id>,
"host_permissions":[
{
<field1>:<value1>,
<field2>:<value2>,
...
}
]
}
}
{
<param1>:<value1>,
<param2>:<value2>,
...
}
| Parameter | Type | Description |
|---|---|---|
| host | string |
{
"HostPermission": {
"instance_id":<instance_id>,
<param1>:<value1>,
<param2>:<value2>,
...
}
}
{
"msg": <success-or-error-msg>
}
| Parameter | Type | Description |
|---|---|---|
| instance_id | URI | ID of the instance |
{
"GlobalHTTPSettings": {
"instance_id":<instance_id>,
"method_permissions":[
{
<field1>:<value1>,
<field2>:<value2>,
...
}
]
}
}
{
<param1>:<value1>,
<param2>:<value2>,
...
}
| Parameter | Type | Description |
|---|---|---|
| ip | ip4addr | |
| method_permission | multienum |
{
"MethodPermission": {
"instance_id":<instance_id>,
<param1>:<value1>,
<param2>:<value2>,
...
}
}
{
"msg": <success-or-error-msg>
}