This function will start a capture session on the devices/interfaces that are passed in the json input.
Method: POST
Data Params:
{
"profisharks": [{
"model": "SomeModel",
"friendly_name": "SomeFriendlyName",
"mac": "SomeMac",
"file_name": "filename for the capture file",
"capture_time": 123,
"max_nr_files": 23,
"loop_capture": false,
"keep_files": false,
"file_size": 4215574,
"folder_root_path": "some/path"
}],
"analyzer": {
"dns": false,
"arp_stats": false,
"pkt_stats": false,
"es_host": "127.0.0.1",
"es_port": "9200",
"es_index": "index_name",
"es_type": "elastic",
"http_host": "127.0.0.1",
"http_port": "9300"
}
"interfaces": [{
"name": "interface name",
"id": 0,
"mac": "some_mac"
}]
}{
"command": "/startCaptureSession",
"command_result": {
"interfaces": [{
"capturing": false,
"id": 0,
"licensed": true,
"mac": "30:9C:23:3F:58:54",
"name": "Ethernet"
}],
"profisharks": [{
"bytes_dropped": 0,
"bytes_written": 0,
"capturing": false,
"error_status": "Success",
"files_written": 0,
"friendly_name": "",
"high_cache_usage": false,
"is_running": false,
"licensed": true,
"mac": "00:1e:c0:93:aa:f7",
"max_cache_size": 0,
"model": "ProfiShark 1G+ GPS",
"model_id": 9,
"name": "ProfiShark 1G+ GPS (00:1e:c0:93:aa:f7)",
"used_cache": 0
}]
},
"errors": false,
"general_message": "Successfully started capture session"
}