2016-05-12 11:39:50 +03:00
/v2/projects/{project_id}/links/{link_id}/start_capture
------------------------------------------------------------------------------------------------------------------------------------------
.. contents ::
POST /v2/projects/**{project_id}** /links/**{link_id}** /start_capture
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
2016-06-04 11:40:39 +03:00
Start capture on a link instance. By default we consider it as an Ethernet link
2016-05-12 11:39:50 +03:00
Parameters
***** *****
2016-06-22 19:14:14 +03:00
- **link_id** : Link UUID
2016-07-14 16:31:49 +03:00
- **project_id** : Project UUID
2016-05-12 11:39:50 +03:00
Response status codes
***** ***** ***** ***** **
- **400** : Invalid request
- **201** : Capture started
Input
***** **
.. raw :: html
<table>
<tr> <th>Name</th> <th>Mandatory</th> <th>Type</th> <th>Description</th> </tr>
2016-06-04 11:40:39 +03:00
<tr><td>capture_file_name</td> <td> </td> <td>string</td> <td>Read only property. The name of the capture file if capture is running</td> </tr>
2016-05-12 11:39:50 +03:00
<tr><td>data_link_type</td> <td> </td> <td>enum</td> <td>Possible values: DLT_ATM_RFC1483, DLT_EN10MB, DLT_FRELAY, DLT_C_HDLC</td> </tr>
</table>
Output
***** **
.. raw :: html
<table>
<tr> <th>Name</th> <th>Mandatory</th> <th>Type</th> <th>Description</th> </tr>
2016-06-04 11:40:39 +03:00
<tr><td>capture_file_name</td> <td> </td> <td>['string', 'null']</td> <td>Read only property. The name of the capture file if capture is running</td> </tr>
<tr><td>capture_file_path</td> <td> </td> <td>['string', 'null']</td> <td>Read only property. The full path of the capture file if capture is running</td> </tr>
<tr><td>capturing</td> <td> </td> <td>boolean</td> <td>Read only property. True if a capture running on the link</td> </tr>
<tr><td>link_id</td> <td> </td> <td>string</td> <td>Link UUID</td> </tr>
2016-05-12 11:39:50 +03:00
<tr><td>nodes</td> <td>✔</td> <td>array</td> <td>List of the VMS</td> </tr>
2016-06-04 11:40:39 +03:00
<tr><td>project_id</td> <td> </td> <td>string</td> <td>Project UUID</td> </tr>
2016-05-12 11:39:50 +03:00
</table>
Sample session
***** ***** *****
.. literalinclude :: ../../../examples/controller_post_projectsprojectidlinkslinkidstartcapture.txt