Navigation

  • index
  • next |
  • previous |
  • GNS3 2.1.16 documentation »
  • Endpoints »
  • Link »

/v2/projects/{project_id}/links/{link_id}/stop_capture¶

Contents

  • /v2/projects/{project_id}/links/{link_id}/stop_capture
    • POST /v2/projects/{project_id}/links/{link_id}/stop_capture
      • Parameters
      • Response status codes
      • Sample session

POST /v2/projects/{project_id}/links/{link_id}/stop_capture¶

Stop capture on a link instance

Parameters¶

  • project_id: Project UUID
  • link_id: Link UUID

Response status codes¶

  • 400: Invalid request
  • 201: Capture stopped

Sample session¶

curl -i -X POST 'http://localhost:3080/v2/projects/dc8a6468-3065-4e5f-b656-54a8a74f6599/links/96548072-70ee-4c76-87e1-4aa428eda20a/stop_capture' -d '{}'

POST /v2/projects/dc8a6468-3065-4e5f-b656-54a8a74f6599/links/96548072-70ee-4c76-87e1-4aa428eda20a/stop_capture HTTP/1.1
{}


HTTP/1.1 201
Connection: close
Content-Length: 288
Content-Type: application/json
Date: Thu, 14 Jun 2018 08:35:14 GMT
Server: Python/3.5 GNS3/2.1.8dev1
X-Route: /v2/projects/{project_id}/links/{link_id}/stop_capture

{
    "capture_file_name": null,
    "capture_file_path": null,
    "capturing": false,
    "filters": {},
    "link_id": "96548072-70ee-4c76-87e1-4aa428eda20a",
    "link_type": "ethernet",
    "nodes": [],
    "project_id": "dc8a6468-3065-4e5f-b656-54a8a74f6599",
    "suspend": false
}

Quick search

Navigation

  • index
  • next |
  • previous |
  • GNS3 2.1.16 documentation »
  • Endpoints »
  • Link »
© Copyright 2015, GNS3 GNS3 Technologies Inc.. Created using Sphinx 1.8.4.