gns3-server/docs/api/v2/hypervisor/project/projects.rst

60 lines
2.8 KiB
ReStructuredText
Raw Normal View History

2016-03-07 18:57:12 +02:00
/v2/hypervisor/projects
------------------------------------------------------------------------------------------------------------------------------------------
2015-01-20 16:21:13 +02:00
.. contents::
2016-03-07 18:57:12 +02:00
GET /v2/hypervisor/projects
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
2015-07-24 11:15:15 +03:00
List projects opened on the server
Response status codes
**********************
- **200**: Project list
Sample session
***************
.. literalinclude:: ../../../examples/hypervisor_get_projects.txt
2015-07-24 11:15:15 +03:00
2016-03-07 18:57:12 +02:00
POST /v2/hypervisor/projects
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
2015-02-04 11:31:31 +02:00
Create a new project on the server
2015-01-20 16:21:13 +02:00
Response status codes
**********************
2015-02-27 19:39:20 +02:00
- **201**: Project created
- **409**: Project already created
2015-01-20 16:21:13 +02:00
Input
*******
.. raw:: html
<table>
<tr> <th>Name</th> <th>Mandatory</th> <th>Type</th> <th>Description</th> </tr>
<tr><td>name</td> <td> </td> <td>['string', 'null']</td> <td>Project name</td> </tr>
<tr><td>path</td> <td> </td> <td>['string', 'null']</td> <td>Project directory</td> </tr>
2015-02-04 11:31:31 +02:00
<tr><td>project_id</td> <td> </td> <td>['string', 'null']</td> <td>Project UUID</td> </tr>
2015-01-23 17:19:17 +02:00
<tr><td>temporary</td> <td> </td> <td>boolean</td> <td>If project is a temporary project</td> </tr>
2015-01-20 16:21:13 +02:00
</table>
Output
*******
.. raw:: html
<table>
<tr> <th>Name</th> <th>Mandatory</th> <th>Type</th> <th>Description</th> </tr>
2016-01-04 18:04:15 +02:00
<tr><td>name</td> <td> </td> <td>['string', 'null']</td> <td>Project name</td> </tr>
2016-03-11 16:21:21 +02:00
<tr><td>path</td> <td> </td> <td>['string', 'null']</td> <td>Project directory</td> </tr>
2015-02-04 11:31:31 +02:00
<tr><td>project_id</td> <td>&#10004;</td> <td>string</td> <td>Project UUID</td> </tr>
2015-01-23 17:19:17 +02:00
<tr><td>temporary</td> <td>&#10004;</td> <td>boolean</td> <td>If project is a temporary project</td> </tr>
2015-01-20 16:21:13 +02:00
</table>
2015-02-24 12:38:57 +02:00
Sample session
***************
.. literalinclude:: ../../../examples/hypervisor_post_projects.txt
2015-02-24 12:38:57 +02:00