gns3-server/docs/api/v2/controller/link/projectsprojectidlinkslinkid.rst

69 lines
4.8 KiB
ReStructuredText
Raw Normal View History

2016-03-14 21:37:07 +02:00
/v2/projects/{project_id}/links/{link_id}
------------------------------------------------------------------------------------------------------------------------------------------
.. contents::
2016-07-11 16:37:57 +03:00
PUT /v2/projects/**{project_id}**/links/**{link_id}**
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Update a link instance
Parameters
**********
2017-03-06 15:35:39 +02:00
- **link_id**: Link UUID
2018-01-08 06:57:07 +02:00
- **project_id**: Project UUID
2016-07-11 16:37:57 +03:00
Response status codes
**********************
2017-03-06 15:35:39 +02:00
- **400**: Invalid request
2018-01-08 06:57:07 +02:00
- **201**: Link updated
2016-07-11 16:37:57 +03:00
Input
*******
.. raw:: html
<table>
<tr> <th>Name</th> <th>Mandatory</th> <th>Type</th> <th>Description</th> </tr>
<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>
2018-01-08 06:57:07 +02:00
<tr><td>filters</td> <td> </td> <td>object</td> <td>Packet filter. This allow to simulate latency and errors</td> </tr>
2016-07-11 16:37:57 +03:00
<tr><td>link_id</td> <td> </td> <td>string</td> <td>Link UUID</td> </tr>
2016-09-27 18:15:40 +03:00
<tr><td>link_type</td> <td> </td> <td>enum</td> <td>Possible values: ethernet, serial</td> </tr>
2018-01-08 06:57:07 +02:00
<tr><td>nodes</td> <td> </td> <td>array</td> <td>List of the VMS</td> </tr>
2016-07-11 16:37:57 +03:00
<tr><td>project_id</td> <td> </td> <td>string</td> <td>Project UUID</td> </tr>
2018-01-08 06:57:07 +02:00
<tr><td>suspend</td> <td> </td> <td>boolean</td> <td>Suspend the link</td> </tr>
2016-07-11 16:37:57 +03:00
</table>
Output
*******
.. raw:: html
<table>
<tr> <th>Name</th> <th>Mandatory</th> <th>Type</th> <th>Description</th> </tr>
<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>
2018-01-08 06:57:07 +02:00
<tr><td>filters</td> <td> </td> <td>object</td> <td>Packet filter. This allow to simulate latency and errors</td> </tr>
2016-07-11 16:37:57 +03:00
<tr><td>link_id</td> <td> </td> <td>string</td> <td>Link UUID</td> </tr>
2016-09-27 18:15:40 +03:00
<tr><td>link_type</td> <td> </td> <td>enum</td> <td>Possible values: ethernet, serial</td> </tr>
2018-01-08 06:57:07 +02:00
<tr><td>nodes</td> <td> </td> <td>array</td> <td>List of the VMS</td> </tr>
2016-07-11 16:37:57 +03:00
<tr><td>project_id</td> <td> </td> <td>string</td> <td>Project UUID</td> </tr>
2018-01-08 06:57:07 +02:00
<tr><td>suspend</td> <td> </td> <td>boolean</td> <td>Suspend the link</td> </tr>
2016-07-11 16:37:57 +03:00
</table>
2016-03-14 21:37:07 +02:00
DELETE /v2/projects/**{project_id}**/links/**{link_id}**
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Delete a link instance
Parameters
**********
2017-03-06 15:35:39 +02:00
- **link_id**: Link UUID
2018-01-08 06:57:07 +02:00
- **project_id**: Project UUID
2016-03-14 21:37:07 +02:00
Response status codes
**********************
2017-03-06 15:35:39 +02:00
- **400**: Invalid request
2018-01-08 06:57:07 +02:00
- **204**: Link deleted
2017-03-21 14:32:04 +02:00