2016-03-11 16:16:09 +00:00
/v2/projects/{project_id}/links
------------------------------------------------------------------------------------------------------------------------------------------
.. contents ::
2016-06-04 08:40:39 +00:00
GET /v2/projects/**{project_id}** /links
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
List links of a project
Parameters
***** *****
- **project_id** : Project UUID
Response status codes
***** ***** ***** ***** **
- **200** : List of links returned
2018-01-08 08:26:44 +00:00
Sample session
***** ***** *****
.. literalinclude :: ../../../examples/controller_get_projectsprojectidlinks.txt
2016-06-04 08:40:39 +00:00
2016-03-11 16:16:09 +00:00
POST /v2/projects/**{project_id}** /links
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Create a new link instance
Parameters
***** *****
2016-06-04 08:40:39 +00:00
- **project_id** : Project UUID
2016-03-11 16:16:09 +00:00
Response status codes
***** ***** ***** ***** **
2018-01-08 04:57:07 +00:00
- **201** : Link created
2018-01-08 08:26:44 +00:00
- **400** : Invalid request
2016-03-11 16:16:09 +00:00
Input
***** **
.. raw :: html
<table>
<tr> <th>Name</th> <th>Mandatory</th> <th>Type</th> <th>Description</th> </tr>
2019-10-23 14:00:00 +00:00
<tr><td>capture_compute_id</td> <td> </td> <td>['string', 'null']</td> <td>Read only property. The compute identifier where a capture is running</td> </tr>
<tr><td>capture_file_name</td> <td> </td> <td>['string', 'null']</td> <td>Read only property. The name of the capture file if a 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 a capture is running</td> </tr>
2016-06-04 08:40:39 +00:00
<tr><td>capturing</td> <td> </td> <td>boolean</td> <td>Read only property. True if a capture running on the link</td> </tr>
2018-01-08 04:57:07 +00:00
<tr><td>filters</td> <td> </td> <td>object</td> <td>Packet filter. This allow to simulate latency and errors</td> </tr>
2016-06-04 08:40:39 +00:00
<tr><td>link_id</td> <td> </td> <td>string</td> <td>Link UUID</td> </tr>
2016-09-27 15:15:40 +00:00
<tr><td>link_type</td> <td> </td> <td>enum</td> <td>Possible values: ethernet, serial</td> </tr>
2018-01-08 04:57:07 +00:00
<tr><td>nodes</td> <td> </td> <td>array</td> <td>List of the VMS</td> </tr>
2016-06-04 08:40:39 +00:00
<tr><td>project_id</td> <td> </td> <td>string</td> <td>Project UUID</td> </tr>
2018-01-08 04:57:07 +00:00
<tr><td>suspend</td> <td> </td> <td>boolean</td> <td>Suspend the link</td> </tr>
2016-03-11 16:16:09 +00:00
</table>
Output
***** **
.. raw :: html
<table>
<tr> <th>Name</th> <th>Mandatory</th> <th>Type</th> <th>Description</th> </tr>
2019-10-23 14:00:00 +00:00
<tr><td>capture_compute_id</td> <td> </td> <td>['string', 'null']</td> <td>Read only property. The compute identifier where a capture is running</td> </tr>
<tr><td>capture_file_name</td> <td> </td> <td>['string', 'null']</td> <td>Read only property. The name of the capture file if a 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 a capture is running</td> </tr>
2016-06-04 08:40:39 +00:00
<tr><td>capturing</td> <td> </td> <td>boolean</td> <td>Read only property. True if a capture running on the link</td> </tr>
2018-01-08 04:57:07 +00:00
<tr><td>filters</td> <td> </td> <td>object</td> <td>Packet filter. This allow to simulate latency and errors</td> </tr>
2016-06-04 08:40:39 +00:00
<tr><td>link_id</td> <td> </td> <td>string</td> <td>Link UUID</td> </tr>
2016-09-27 15:15:40 +00:00
<tr><td>link_type</td> <td> </td> <td>enum</td> <td>Possible values: ethernet, serial</td> </tr>
2018-01-08 04:57:07 +00:00
<tr><td>nodes</td> <td> </td> <td>array</td> <td>List of the VMS</td> </tr>
2016-06-04 08:40:39 +00:00
<tr><td>project_id</td> <td> </td> <td>string</td> <td>Project UUID</td> </tr>
2018-01-08 04:57:07 +00:00
<tr><td>suspend</td> <td> </td> <td>boolean</td> <td>Suspend the link</td> </tr>
2016-03-11 16:16:09 +00:00
</table>
2018-01-08 08:26:44 +00:00
Sample session
***** ***** *****
.. literalinclude :: ../../../examples/controller_post_projectsprojectidlinks.txt