| Field Group Name | Field Name | Type | Description |
|---|---|---|---|
| pptp | inbound | port | |
| pptp | outbound | port | |
| ftp | port | ListField | |
| dns | enable | boolean | |
| dns | method | enum | Available values:
|
| stats | outbound_gre_tunnel | StorableField | |
| stats | outbound_out_packets | StorableField | |
| stats | outbound_in_packets | StorableField | |
| stats | outbound_out_bytes | StorableField | |
| stats | outbound_in_bytes | StorableField | |
| stats | inbound_gre_tunnel | StorableField | |
| stats | inbound_out_packets | StorableField | |
| stats | inbound_in_packets | StorableField | |
| stats | inbound_out_bytes | StorableField | |
| stats | inbound_in_bytes | StorableField |
{
"NATProtocolSettings": {
"meta": {
"abstract": false,
"verbose_name": NAT Protocol Settings,
},
"fieldgroups": [
{
"fields": [
{
"verbose_name": field_verbose_name1,
"field_name": field_name1
},
...
],
"group_name": field_group_name1
},
...
]
}
}
| Parameter | Type | Description |
|---|---|---|
| field_group_name | URI | (optional) Target field group name to query. Available names are: pptp, ftp, dns, stats, 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: inbound, outbound, port, enable, method, outbound_gre_tunnel, outbound_out_packets, outbound_in_packets, outbound_out_bytes, outbound_in_bytes, inbound_gre_tunnel, inbound_out_packets, inbound_in_packets, inbound_out_bytes, inbound_in_bytes, Notice: There could only be one field_group_name or field_name in the URL. |
| Field Group Name | Field Name | Type | Description |
|---|---|---|---|
| pptp | inbound | port | |
| pptp | outbound | port | |
| ftp | port | ListField | |
| dns | enable | boolean | |
| dns | method | enum | Available values:
|
| stats | outbound_gre_tunnel | StorableField | |
| stats | outbound_out_packets | StorableField | |
| stats | outbound_in_packets | StorableField | |
| stats | outbound_out_bytes | StorableField | |
| stats | outbound_in_bytes | StorableField | |
| stats | inbound_gre_tunnel | StorableField | |
| stats | inbound_out_packets | StorableField | |
| stats | inbound_in_packets | StorableField | |
| stats | inbound_out_bytes | StorableField | |
| stats | inbound_in_bytes | StorableField |
{
"NATProtocolSettings": {
<field1>:<value1>,
<field2>:<value2>,
...
}
}
When some field_group name is provided:
{
"NATProtocolSettings": {
<field1>:<value1>,
<field2>:<value2>,
...
}
}
When some field name is provided:
{
"NATProtocolSettings": {
<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: inbound, outbound, port, enable, method, outbound_gre_tunnel, outbound_out_packets, outbound_in_packets, outbound_out_bytes, outbound_in_bytes, inbound_gre_tunnel, inbound_out_packets, inbound_in_packets, inbound_out_bytes, inbound_in_bytes, |
| Field Name | Type | Description |
|---|---|---|
| inbound | port | |
| outbound | port | |
| port | ListField | |
| enable | boolean | |
| method | enum | Available values:
|
All configuration fields and their values are replied:
{
"NATProtocolSettings": {
<field1>:<value1>,
<field2>:<value2>,
...
<field_group1>: {
<field3>:<value3>,
<field4>:<value4>,
...
},
<field_group2>: {
<field5>:<value5>,
<field6>:<value6>,
...
},
...
}
}