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