gns3-server/docs/api/examples/compute_post_projectsprojectidiounodesnodeidadaptersadapternumberdportsportnumberdstartcapture.txt

21 lines
911 B
Plaintext
Raw Normal View History

2018-06-07 11:26:06 +03:00
curl -i -X POST 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/iou/nodes/17acdd5b-0e7e-43d0-97ad-56b3c028b933/adapters/0/ports/0/start_capture' -d '{"capture_file_name": "test.pcap", "data_link_type": "DLT_EN10MB"}'
2018-01-08 10:26:44 +02:00
2018-06-07 11:26:06 +03:00
POST /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/iou/nodes/17acdd5b-0e7e-43d0-97ad-56b3c028b933/adapters/0/ports/0/start_capture HTTP/1.1
2018-01-08 10:26:44 +02:00
{
"capture_file_name": "test.pcap",
"data_link_type": "DLT_EN10MB"
}
HTTP/1.1 200
Connection: close
Content-Length: 145
Content-Type: application/json
2018-06-07 11:26:06 +03:00
Date: Thu, 07 Jun 2018 08:13:21 GMT
Server: Python/3.6 GNS3/2.1.7dev1
2018-01-08 10:26:44 +02:00
X-Route: /v2/compute/projects/{project_id}/iou/nodes/{node_id}/adapters/{adapter_number:\d+}/ports/{port_number:\d+}/start_capture
{
"pcap_file_path": "/private/var/folders/qy/g6blgc5n7y93pzg61zyt7cmr0000gn/T/pytest-of-behlers/pytest-0/test_json4/tmp/captures/test.pcap"
}