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