| Field Group Name | Field Name | Type | Description |
|---|---|---|---|
| default | name | string | |
| default | inf_type | enum | Available values:
|
| default | addresses | asso | |
| default | inf_stats | string | |
| default | id | string | |
| default | mac | string | |
| default | mtu | uint32 | Maximum Transmission Unit |
| default | speed | enum | If any interface is set up to be connected to a device, such as a router or switch with a specific speed and duplex mode, administrators need to set the system to match those requirements. The interface speed of a 10G port can only be set to "auto".Available values:
|
| default | promisc | boolean | Enables the promiscuous mode to allow the system interface to process the packets whose destination MAC addresses are not local. |
| default | dhcp | boolean | |
| default | manage_port | boolean | |
| default | gateway | ipaddr | |
| stats | hardware_status | string | |
| stats | webwall_status | boolean | |
| stats | drop_notp_tcp | StorableField | |
| stats | drop_notp_udp | StorableField | |
| stats | drop_notp_icmp | StorableField | |
| stats | drop_notp_ah | StorableField | |
| stats | drop_notp_esp | StorableField | |
| stats | drop_deny_tcp | StorableField | |
| stats | drop_deny_udp | StorableField | |
| stats | drop_deny_icmp | StorableField | |
| stats | drop_deny_ah | StorableField | |
| stats | drop_deny_esp | StorableField |
{
"SystemInterface": {
"meta": {
"abstract": false,
"verbose_name": System Interface,
},
"fieldgroups": [
{
"fields": [
{
"verbose_name": field_verbose_name1,
"field_name": field_name1
},
...
],
"group_name": field_group_name1
},
...
]
}
}
{
"SystemInterface": [
{
"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, tgt_fields, sys_tgt_fields, 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: name, inf_type, addresses, inf_stats, id, mac, mtu, speed, promisc, dhcp, manage_port, gateway, hardware_status, webwall_status, drop_notp_tcp, drop_notp_udp, drop_notp_icmp, drop_notp_ah, drop_notp_esp, drop_deny_tcp, drop_deny_udp, drop_deny_icmp, drop_deny_ah, drop_deny_esp, Notice: There could only be one field_group_name or field_name in the URL. |
| Field Group Name | Field Name | Type | Description |
|---|---|---|---|
| default | name | string | |
| default | inf_type | enum | Available values:
|
| default | addresses | asso | |
| default | inf_stats | string | |
| default | id | string | |
| default | mac | string | |
| default | mtu | uint32 | Maximum Transmission Unit |
| default | speed | enum | If any interface is set up to be connected to a device, such as a router or switch with a specific speed and duplex mode, administrators need to set the system to match those requirements. The interface speed of a 10G port can only be set to "auto".Available values:
|
| default | promisc | boolean | Enables the promiscuous mode to allow the system interface to process the packets whose destination MAC addresses are not local. |
| default | dhcp | boolean | |
| default | manage_port | boolean | |
| default | gateway | ipaddr | |
| stats | hardware_status | string | |
| stats | webwall_status | boolean | |
| stats | drop_notp_tcp | StorableField | |
| stats | drop_notp_udp | StorableField | |
| stats | drop_notp_icmp | StorableField | |
| stats | drop_notp_ah | StorableField | |
| stats | drop_notp_esp | StorableField | |
| stats | drop_deny_tcp | StorableField | |
| stats | drop_deny_udp | StorableField | |
| stats | drop_deny_icmp | StorableField | |
| stats | drop_deny_ah | StorableField | |
| stats | drop_deny_esp | StorableField |
{
"SystemInterface": {
"instance_id":<instance_id>,
<field1>:<value1>,
<field2>:<value2>,
...
}
}
When some field_group name is provided:
{
"SystemInterface": {
"instance_id":<instance_id>,
<field1>:<value1>,
<field2>:<value2>,
...
}
}
When some field name is provided:
{
"SystemInterface": {
"instance_id":<instance_id>,
<field>:<value>,
}
}
{
<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: name, mac, mtu, speed, promisc, dhcp, manage_port, gateway, |
| Field Name | Type | Description |
|---|---|---|
| name | string | |
| mac | string | |
| mtu | uint32 | Maximum Transmission Unit |
| speed | enum | If any interface is set up to be connected to a device, such as a router or switch with a specific speed and duplex mode, administrators need to set the system to match those requirements. The interface speed of a 10G port can only be set to "auto".Available values:
|
| promisc | boolean | Enables the promiscuous mode to allow the system interface to process the packets whose destination MAC addresses are not local. |
| dhcp | boolean | |
| manage_port | boolean | |
| gateway | ipaddr |
All configuration fields and their values are replied:
{
"SystemInterface": {
"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 |
{
"SystemInterface": {
"instance_id":<instance_id>,
"addresses":[
{
<field1>:<value1>,
<field2>:<value2>,
...
}
]
}
}
{
<param1>:<value1>,
<param2>:<value2>,
...
}
| Parameter | Type | Description |
|---|---|---|
| ip | ipaddr | |
| mask_prefix | UnionField | |
| overlap | boolean | Needs to be used only when the NUMA SLB (single VIP, reverse mode) is deployed. Normally, this parameter does not need to be specified since the subnet of an interface to be added cannot overlap with that of any existing interface. |
{
"InterfaceIP": {
"instance_id":<instance_id>,
<param1>:<value1>,
<param2>:<value2>,
...
}
}
{
"msg": <success-or-error-msg>
}