5.13.1 api pcap

The /api/pcap function helps download the network interface traffic records (pcap file). You can also use the /api/pcap/restart a /api/pcap/stop functions for network traffic control.

The function is part of the System service and the user must be assigned the System Control privilege for authentication if required.

The GET or POST method can be used for this function.

The function has no parameters.

The reply is in the application/json format and the downloaded file can be opened directly in Wireshark, for example. 

Example:

GET /api/pcap