SysInterface
Network interfaces such as port1. For descriptions, see the FortiRecorder Administration Guide.
Permissions required include System access.
| HTTP Methods |
Physical network interfaces cannot be created nor deleted. |
| URL |
For HTTP
For HTTP
where variables are:
|
| Request JSON |
For HTTP For HTTP For HTTP {
"link_status": true
}
|
|
Response JSON |
For HTTP For HTTP {
"objectID": "SysInterface:port2",
"reqAction": 1,
"nodePermission": 3,
"mkey": "port2",
"type": 0,
"aggregate_master": 0,
"bridge_member": true,
"ip": "172.168.1.103/24",
"ip6": "::/0",
"status": true,
"interface": "",
"aggregate_member": "",
"incoming_mode": 2,
"outgoing_mode": 0,
"local": true,
"allowaccess": 23,
"discover": true,
"webaccess": 1,
"mode": 0,
"connection": false,
"defaultgw": false,
"mtu": 1500,
"speed": 0,
"mac_addr": "00:10:f3:37:6c:e2",
"vlanid": 1,
"aggregate_monitor": 0,
"aggregate_arp_ip": "",
"aggregate_algorithm": 0,
"aggregate_mode": 4,
"rx_queue": 0,
"tx_queue": 0,
"link_status": true
}
where attributes often self-explanatory, except:
|
Example: Get a list of network interfaces
curl -X GET -b cookie.txt https://HOST_OR_IP/api/v1/SysInterface/
Example: Allow only RTSP, FortiCentral, and HTTPS connections to port2
curl -X PUT -H "Content-Type:application/json" -d "{\"allowaccess\":385}" -b cookie.txt https://HOST_OR_IP/api/v1/SysInterface/port2